1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-23 21:52:19 +01:00
git-touch-android-ios-app/lib/graphql/github_user.g.dart

486 lines
16 KiB
Dart
Raw Normal View History

// GENERATED CODE - DO NOT MODIFY BY HAND
2019-12-07 08:28:43 +01:00
part of 'github_user.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
2019-12-07 08:28:43 +01:00
GithubUser _$GithubUserFromJson(Map<String, dynamic> json) {
return GithubUser()
..repositoryOwner = json['repositoryOwner'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserRepositoryOwner.fromJson(
json['repositoryOwner'] as Map<String, dynamic>);
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserToJson(GithubUser instance) =>
<String, dynamic>{
'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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserRepositoryOwnerToJson(
GithubUserRepositoryOwner instance) =>
<String, dynamic>{
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserUser _$GithubUserUserFromJson(Map<String, dynamic> json) {
return GithubUserUser()
..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(
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>)
..following = json['following'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserFollowingConnection.fromJson(
json['following'] as Map<String, dynamic>)
..repositories = json['repositories'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserRepositoryConnection.fromJson(
json['repositories'] as Map<String, dynamic>)
..pinnedItems = json['pinnedItems'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserPinnableItemConnection.fromJson(
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>{
'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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserStarredRepositoryConnectionToJson(
GithubUserStarredRepositoryConnection instance) =>
<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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserFollowerConnectionToJson(
GithubUserFollowerConnection instance) =>
<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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserFollowingConnectionToJson(
GithubUserFollowingConnection instance) =>
<String, dynamic>{
'totalCount': instance.totalCount,
};
2019-12-07 08:28:43 +01:00
GithubUserRepositoryConnection _$GithubUserRepositoryConnectionFromJson(
Map<String, dynamic> json) {
return GithubUserRepositoryConnection()
..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>))
?.toList();
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserRepositoryConnectionToJson(
GithubUserRepositoryConnection instance) =>
<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()
..owner = json['owner'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserRepositoryOwner.fromJson(
json['owner'] as Map<String, dynamic>)
..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(
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>)
..primaryLanguage = json['primaryLanguage'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserLanguage.fromJson(
json['primaryLanguage'] as Map<String, dynamic>)
..resolveType = json['__typename'] as String;
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserRepositoryToJson(
GithubUserRepository instance) =>
<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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserStargazerConnectionToJson(
GithubUserStargazerConnection instance) =>
<String, dynamic>{
'totalCount': instance.totalCount,
};
2019-12-07 08:28:43 +01:00
GithubUserLanguage _$GithubUserLanguageFromJson(Map<String, dynamic> json) {
return GithubUserLanguage()
..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>{
'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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserNodeToJson(GithubUserNode instance) =>
<String, dynamic>{
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserPinnableItem _$GithubUserPinnableItemFromJson(
Map<String, dynamic> json) {
return GithubUserPinnableItem();
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserPinnableItemToJson(
GithubUserPinnableItem instance) =>
<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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserProjectOwnerToJson(
GithubUserProjectOwner instance) =>
<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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserRegistryPackageOwnerToJson(
GithubUserRegistryPackageOwner instance) =>
<String, dynamic>{
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserRegistryPackageSearch _$GithubUserRegistryPackageSearchFromJson(
Map<String, dynamic> json) {
2019-12-07 08:28:43 +01:00
return GithubUserRegistryPackageSearch()
..resolveType = json['__typename'] as String;
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserRegistryPackageSearchToJson(
GithubUserRegistryPackageSearch instance) =>
<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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserSubscribableToJson(
GithubUserSubscribable instance) =>
<String, dynamic>{
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserStarrable _$GithubUserStarrableFromJson(Map<String, dynamic> json) {
return GithubUserStarrable()
..stargazers = json['stargazers'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserStargazerConnection.fromJson(
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>{
'stargazers': instance.stargazers?.toJson(),
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserUniformResourceLocatable _$GithubUserUniformResourceLocatableFromJson(
Map<String, dynamic> json) {
2019-12-07 08:28:43 +01:00
return GithubUserUniformResourceLocatable()
..resolveType = json['__typename'] as String;
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserUniformResourceLocatableToJson(
GithubUserUniformResourceLocatable instance) =>
<String, dynamic>{
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserRepositoryInfo _$GithubUserRepositoryInfoFromJson(
Map<String, dynamic> json) {
return GithubUserRepositoryInfo()
..owner = json['owner'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserRepositoryOwner.fromJson(
json['owner'] as Map<String, dynamic>)
..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) =>
<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(
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
..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>))
?.toList();
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserPinnableItemConnectionToJson(
GithubUserPinnableItemConnection instance) =>
<String, dynamic>{
2019-12-07 06:31:54 +01:00
'totalCount': instance.totalCount,
'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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserAuditEntryActorToJson(
GithubUserAuditEntryActor instance) =>
<String, dynamic>{};
2019-12-07 08:28:43 +01:00
GithubUserActor _$GithubUserActorFromJson(Map<String, dynamic> json) {
return GithubUserActor()
..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>{
'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()
..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(
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) =>
<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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserSponsorableToJson(
GithubUserSponsorable instance) =>
<String, dynamic>{
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserOrganization _$GithubUserOrganizationFromJson(
Map<String, dynamic> json) {
return GithubUserOrganization()
..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(
json['pinnedItems'] as Map<String, dynamic>)
..pinnableItems = json['pinnableItems'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserPinnableItemConnection.fromJson(
json['pinnableItems'] as Map<String, dynamic>)
..membersWithRole = json['membersWithRole'] == null
? null
2019-12-07 08:28:43 +01:00
: GithubUserOrganizationMemberConnection.fromJson(
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) =>
<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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserOrganizationMemberConnectionToJson(
GithubUserOrganizationMemberConnection instance) =>
<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-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserMemberStatusableToJson(
GithubUserMemberStatusable instance) =>
<String, dynamic>{
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserArguments _$GithubUserArgumentsFromJson(Map<String, dynamic> json) {
return GithubUserArguments(
login: json['login'] as String,
);
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserArgumentsToJson(
GithubUserArguments instance) =>
<String, dynamic>{
'login': instance.login,
};