2019-12-06 14:51:33 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
part of 'github_user.dart';
|
2019-12-06 14:51:33 +01:00
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUser _$GithubUserFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubUser()
|
2019-12-06 14:51:33 +01:00
|
|
|
..repositoryOwner = json['repositoryOwner'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserRepositoryOwner.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['repositoryOwner'] as Map<String, dynamic>);
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserToJson(GithubUser instance) =>
|
|
|
|
<String, dynamic>{
|
2019-12-06 14:51:33 +01:00
|
|
|
'repositoryOwner': instance.repositoryOwner?.toJson(),
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserRepositoryOwner _$GithubUserRepositoryOwnerFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserRepositoryOwner()
|
|
|
|
..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserRepositoryOwnerToJson(
|
|
|
|
GithubUserRepositoryOwner instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserUser _$GithubUserUserFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubUserUser()
|
2019-12-06 14:51:33 +01:00
|
|
|
..login = json['login'] as String
|
|
|
|
..name = json['name'] as String
|
|
|
|
..avatarUrl = json['avatarUrl'] as String
|
|
|
|
..bio = json['bio'] as String
|
|
|
|
..company = json['company'] as String
|
|
|
|
..location = json['location'] as String
|
|
|
|
..email = json['email'] as String
|
|
|
|
..websiteUrl = json['websiteUrl'] as String
|
|
|
|
..starredRepositories = json['starredRepositories'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserStarredRepositoryConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['starredRepositories'] as Map<String, dynamic>)
|
|
|
|
..followers = json['followers'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserFollowerConnection.fromJson(
|
|
|
|
json['followers'] as Map<String, dynamic>)
|
2019-12-06 14:51:33 +01:00
|
|
|
..following = json['following'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserFollowingConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['following'] as Map<String, dynamic>)
|
|
|
|
..repositories = json['repositories'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserRepositoryConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['repositories'] as Map<String, dynamic>)
|
|
|
|
..pinnedItems = json['pinnedItems'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserPinnableItemConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['pinnedItems'] as Map<String, dynamic>)
|
|
|
|
..viewerCanFollow = json['viewerCanFollow'] as bool
|
|
|
|
..viewerIsFollowing = json['viewerIsFollowing'] as bool
|
|
|
|
..url = json['url'] as String
|
|
|
|
..resolveType = json['__typename'] as String;
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserUserToJson(GithubUserUser instance) =>
|
|
|
|
<String, dynamic>{
|
2019-12-06 14:51:33 +01:00
|
|
|
'login': instance.login,
|
|
|
|
'name': instance.name,
|
|
|
|
'avatarUrl': instance.avatarUrl,
|
|
|
|
'bio': instance.bio,
|
|
|
|
'company': instance.company,
|
|
|
|
'location': instance.location,
|
|
|
|
'email': instance.email,
|
|
|
|
'websiteUrl': instance.websiteUrl,
|
|
|
|
'starredRepositories': instance.starredRepositories?.toJson(),
|
|
|
|
'followers': instance.followers?.toJson(),
|
|
|
|
'following': instance.following?.toJson(),
|
|
|
|
'repositories': instance.repositories?.toJson(),
|
|
|
|
'pinnedItems': instance.pinnedItems?.toJson(),
|
|
|
|
'viewerCanFollow': instance.viewerCanFollow,
|
|
|
|
'viewerIsFollowing': instance.viewerIsFollowing,
|
|
|
|
'url': instance.url,
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserStarredRepositoryConnection
|
|
|
|
_$GithubUserStarredRepositoryConnectionFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubUserStarredRepositoryConnection()
|
|
|
|
..totalCount = json['totalCount'] as int;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserStarredRepositoryConnectionToJson(
|
|
|
|
GithubUserStarredRepositoryConnection instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'totalCount': instance.totalCount,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserFollowerConnection _$GithubUserFollowerConnectionFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserFollowerConnection()..totalCount = json['totalCount'] as int;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserFollowerConnectionToJson(
|
|
|
|
GithubUserFollowerConnection instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'totalCount': instance.totalCount,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserFollowingConnection _$GithubUserFollowingConnectionFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserFollowingConnection()
|
|
|
|
..totalCount = json['totalCount'] as int;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserFollowingConnectionToJson(
|
|
|
|
GithubUserFollowingConnection instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'totalCount': instance.totalCount,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserRepositoryConnection _$GithubUserRepositoryConnectionFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserRepositoryConnection()
|
2019-12-06 14:51:33 +01:00
|
|
|
..totalCount = json['totalCount'] as int
|
|
|
|
..nodes = (json['nodes'] as List)
|
2019-12-07 08:28:43 +01:00
|
|
|
?.map((e) => e == null
|
|
|
|
? null
|
|
|
|
: GithubUserRepository.fromJson(e as Map<String, dynamic>))
|
2019-12-06 14:51:33 +01:00
|
|
|
?.toList();
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserRepositoryConnectionToJson(
|
|
|
|
GithubUserRepositoryConnection instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'totalCount': instance.totalCount,
|
|
|
|
'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(),
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserRepository _$GithubUserRepositoryFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubUserRepository()
|
2019-12-06 14:51:33 +01:00
|
|
|
..owner = json['owner'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserRepositoryOwner.fromJson(
|
|
|
|
json['owner'] as Map<String, dynamic>)
|
2019-12-06 14:51:33 +01:00
|
|
|
..name = json['name'] as String
|
|
|
|
..description = json['description'] as String
|
|
|
|
..isPrivate = json['isPrivate'] as bool
|
|
|
|
..isFork = json['isFork'] as bool
|
|
|
|
..stargazers = json['stargazers'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserStargazerConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['stargazers'] as Map<String, dynamic>)
|
|
|
|
..forks = json['forks'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserRepositoryConnection.fromJson(
|
|
|
|
json['forks'] as Map<String, dynamic>)
|
2019-12-06 14:51:33 +01:00
|
|
|
..primaryLanguage = json['primaryLanguage'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserLanguage.fromJson(
|
|
|
|
json['primaryLanguage'] as Map<String, dynamic>)
|
2019-12-06 14:51:33 +01:00
|
|
|
..resolveType = json['__typename'] as String;
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserRepositoryToJson(
|
|
|
|
GithubUserRepository instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'owner': instance.owner?.toJson(),
|
|
|
|
'name': instance.name,
|
|
|
|
'description': instance.description,
|
|
|
|
'isPrivate': instance.isPrivate,
|
|
|
|
'isFork': instance.isFork,
|
|
|
|
'stargazers': instance.stargazers?.toJson(),
|
|
|
|
'forks': instance.forks?.toJson(),
|
|
|
|
'primaryLanguage': instance.primaryLanguage?.toJson(),
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserStargazerConnection _$GithubUserStargazerConnectionFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserStargazerConnection()
|
|
|
|
..totalCount = json['totalCount'] as int;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserStargazerConnectionToJson(
|
|
|
|
GithubUserStargazerConnection instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'totalCount': instance.totalCount,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserLanguage _$GithubUserLanguageFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubUserLanguage()
|
2019-12-06 14:51:33 +01:00
|
|
|
..color = json['color'] as String
|
|
|
|
..name = json['name'] as String
|
|
|
|
..resolveType = json['__typename'] as String;
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserLanguageToJson(GithubUserLanguage instance) =>
|
|
|
|
<String, dynamic>{
|
2019-12-06 14:51:33 +01:00
|
|
|
'color': instance.color,
|
|
|
|
'name': instance.name,
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserNode _$GithubUserNodeFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubUserNode()..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserNodeToJson(GithubUserNode instance) =>
|
|
|
|
<String, dynamic>{
|
2019-12-06 14:51:33 +01:00
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserPinnableItem _$GithubUserPinnableItemFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserPinnableItem();
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserPinnableItemToJson(
|
|
|
|
GithubUserPinnableItem instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserProjectOwner _$GithubUserProjectOwnerFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserProjectOwner()..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserProjectOwnerToJson(
|
|
|
|
GithubUserProjectOwner instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserRegistryPackageOwner _$GithubUserRegistryPackageOwnerFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserRegistryPackageOwner()
|
|
|
|
..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserRegistryPackageOwnerToJson(
|
|
|
|
GithubUserRegistryPackageOwner instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserRegistryPackageSearch _$GithubUserRegistryPackageSearchFromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
Map<String, dynamic> json) {
|
2019-12-07 08:28:43 +01:00
|
|
|
return GithubUserRegistryPackageSearch()
|
|
|
|
..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserRegistryPackageSearchToJson(
|
|
|
|
GithubUserRegistryPackageSearch instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserSubscribable _$GithubUserSubscribableFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserSubscribable()..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserSubscribableToJson(
|
|
|
|
GithubUserSubscribable instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserStarrable _$GithubUserStarrableFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubUserStarrable()
|
2019-12-06 14:51:33 +01:00
|
|
|
..stargazers = json['stargazers'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserStargazerConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['stargazers'] as Map<String, dynamic>)
|
|
|
|
..resolveType = json['__typename'] as String;
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserStarrableToJson(
|
|
|
|
GithubUserStarrable instance) =>
|
|
|
|
<String, dynamic>{
|
2019-12-06 14:51:33 +01:00
|
|
|
'stargazers': instance.stargazers?.toJson(),
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserUniformResourceLocatable _$GithubUserUniformResourceLocatableFromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
Map<String, dynamic> json) {
|
2019-12-07 08:28:43 +01:00
|
|
|
return GithubUserUniformResourceLocatable()
|
|
|
|
..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserUniformResourceLocatableToJson(
|
|
|
|
GithubUserUniformResourceLocatable instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserRepositoryInfo _$GithubUserRepositoryInfoFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserRepositoryInfo()
|
2019-12-06 14:51:33 +01:00
|
|
|
..owner = json['owner'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserRepositoryOwner.fromJson(
|
|
|
|
json['owner'] as Map<String, dynamic>)
|
2019-12-06 14:51:33 +01:00
|
|
|
..name = json['name'] as String
|
|
|
|
..description = json['description'] as String
|
|
|
|
..isPrivate = json['isPrivate'] as bool
|
|
|
|
..isFork = json['isFork'] as bool
|
|
|
|
..resolveType = json['__typename'] as String;
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserRepositoryInfoToJson(
|
|
|
|
GithubUserRepositoryInfo instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'owner': instance.owner?.toJson(),
|
|
|
|
'name': instance.name,
|
|
|
|
'description': instance.description,
|
|
|
|
'isPrivate': instance.isPrivate,
|
|
|
|
'isFork': instance.isFork,
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserPinnableItemConnection _$GithubUserPinnableItemConnectionFromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
Map<String, dynamic> json) {
|
2019-12-07 08:28:43 +01:00
|
|
|
return GithubUserPinnableItemConnection()
|
2019-12-07 06:31:54 +01:00
|
|
|
..totalCount = json['totalCount'] as int
|
2019-12-06 14:51:33 +01:00
|
|
|
..nodes = (json['nodes'] as List)
|
2019-12-07 08:28:43 +01:00
|
|
|
?.map((e) => e == null
|
|
|
|
? null
|
|
|
|
: GithubUserPinnableItem.fromJson(e as Map<String, dynamic>))
|
2019-12-06 14:51:33 +01:00
|
|
|
?.toList();
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserPinnableItemConnectionToJson(
|
|
|
|
GithubUserPinnableItemConnection instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
2019-12-07 06:31:54 +01:00
|
|
|
'totalCount': instance.totalCount,
|
2019-12-06 14:51:33 +01:00
|
|
|
'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(),
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserAuditEntryActor _$GithubUserAuditEntryActorFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserAuditEntryActor();
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserAuditEntryActorToJson(
|
|
|
|
GithubUserAuditEntryActor instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserActor _$GithubUserActorFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubUserActor()
|
2019-12-06 14:51:33 +01:00
|
|
|
..login = json['login'] as String
|
|
|
|
..avatarUrl = json['avatarUrl'] as String
|
|
|
|
..url = json['url'] as String
|
|
|
|
..resolveType = json['__typename'] as String;
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserActorToJson(GithubUserActor instance) =>
|
|
|
|
<String, dynamic>{
|
2019-12-06 14:51:33 +01:00
|
|
|
'login': instance.login,
|
|
|
|
'avatarUrl': instance.avatarUrl,
|
|
|
|
'url': instance.url,
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserProfileOwner _$GithubUserProfileOwnerFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserProfileOwner()
|
2019-12-06 14:51:33 +01:00
|
|
|
..login = json['login'] as String
|
|
|
|
..name = json['name'] as String
|
|
|
|
..location = json['location'] as String
|
|
|
|
..email = json['email'] as String
|
|
|
|
..websiteUrl = json['websiteUrl'] as String
|
|
|
|
..pinnedItems = json['pinnedItems'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserPinnableItemConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['pinnedItems'] as Map<String, dynamic>)
|
|
|
|
..resolveType = json['__typename'] as String;
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserProfileOwnerToJson(
|
|
|
|
GithubUserProfileOwner instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'login': instance.login,
|
|
|
|
'name': instance.name,
|
|
|
|
'location': instance.location,
|
|
|
|
'email': instance.email,
|
|
|
|
'websiteUrl': instance.websiteUrl,
|
|
|
|
'pinnedItems': instance.pinnedItems?.toJson(),
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserSponsorable _$GithubUserSponsorableFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserSponsorable()..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserSponsorableToJson(
|
|
|
|
GithubUserSponsorable instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserOrganization _$GithubUserOrganizationFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserOrganization()
|
2019-12-06 14:51:33 +01:00
|
|
|
..login = json['login'] as String
|
|
|
|
..name = json['name'] as String
|
|
|
|
..avatarUrl = json['avatarUrl'] as String
|
|
|
|
..description = json['description'] as String
|
|
|
|
..location = json['location'] as String
|
|
|
|
..email = json['email'] as String
|
|
|
|
..websiteUrl = json['websiteUrl'] as String
|
|
|
|
..url = json['url'] as String
|
|
|
|
..pinnedItems = json['pinnedItems'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserPinnableItemConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['pinnedItems'] as Map<String, dynamic>)
|
|
|
|
..pinnableItems = json['pinnableItems'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserPinnableItemConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['pinnableItems'] as Map<String, dynamic>)
|
|
|
|
..membersWithRole = json['membersWithRole'] == null
|
|
|
|
? null
|
2019-12-07 08:28:43 +01:00
|
|
|
: GithubUserOrganizationMemberConnection.fromJson(
|
2019-12-06 14:51:33 +01:00
|
|
|
json['membersWithRole'] as Map<String, dynamic>)
|
|
|
|
..resolveType = json['__typename'] as String;
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserOrganizationToJson(
|
|
|
|
GithubUserOrganization instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'login': instance.login,
|
|
|
|
'name': instance.name,
|
|
|
|
'avatarUrl': instance.avatarUrl,
|
|
|
|
'description': instance.description,
|
|
|
|
'location': instance.location,
|
|
|
|
'email': instance.email,
|
|
|
|
'websiteUrl': instance.websiteUrl,
|
|
|
|
'url': instance.url,
|
|
|
|
'pinnedItems': instance.pinnedItems?.toJson(),
|
|
|
|
'pinnableItems': instance.pinnableItems?.toJson(),
|
|
|
|
'membersWithRole': instance.membersWithRole?.toJson(),
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserOrganizationMemberConnection
|
|
|
|
_$GithubUserOrganizationMemberConnectionFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserOrganizationMemberConnection()
|
|
|
|
..totalCount = json['totalCount'] as int;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserOrganizationMemberConnectionToJson(
|
|
|
|
GithubUserOrganizationMemberConnection instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'totalCount': instance.totalCount,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserMemberStatusable _$GithubUserMemberStatusableFromJson(
|
|
|
|
Map<String, dynamic> json) {
|
|
|
|
return GithubUserMemberStatusable()
|
|
|
|
..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserMemberStatusableToJson(
|
|
|
|
GithubUserMemberStatusable instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'__typename': instance.resolveType,
|
|
|
|
};
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
GithubUserArguments _$GithubUserArgumentsFromJson(Map<String, dynamic> json) {
|
|
|
|
return GithubUserArguments(
|
2019-12-06 14:51:33 +01:00
|
|
|
login: json['login'] as String,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserArgumentsToJson(
|
|
|
|
GithubUserArguments instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<String, dynamic>{
|
|
|
|
'login': instance.login,
|
|
|
|
};
|