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

563 lines
19 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(
2020-01-01 09:35:50 +01:00
json['repositoryOwner'] as Map<String, dynamic>)
..viewer = json['viewer'] == null
? null
: GithubUserUser.fromJson(json['viewer'] as Map<String, dynamic>);
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserToJson(GithubUser instance) =>
<String, dynamic>{
'repositoryOwner': instance.repositoryOwner?.toJson(),
2020-01-01 09:35:50 +01:00
'viewer': instance.viewer?.toJson(),
};
2019-12-07 08:28:43 +01:00
GithubUserRepositoryOwner _$GithubUserRepositoryOwnerFromJson(
Map<String, dynamic> json) {
return GithubUserRepositoryOwner()
2019-12-07 14:12:48 +01:00
..login = json['login'] as String
..avatarUrl = json['avatarUrl'] as String
..url = json['url'] as String
2019-12-07 08:28:43 +01:00
..resolveType = json['__typename'] as String;
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserRepositoryOwnerToJson(
GithubUserRepositoryOwner instance) =>
<String, dynamic>{
2019-12-07 14:12:48 +01:00
'login': instance.login,
'avatarUrl': instance.avatarUrl,
'url': instance.url,
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserUser _$GithubUserUserFromJson(Map<String, dynamic> json) {
return GithubUserUser()
..name = json['name'] as String
..bio = json['bio'] as String
..company = json['company'] as String
..location = json['location'] as String
..email = json['email'] as String
2020-01-01 08:58:49 +01:00
..createdAt = json['createdAt'] == null
? null
: DateTime.parse(json['createdAt'] 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>)
2020-01-01 06:26:20 +01:00
..contributionsCollection = json['contributionsCollection'] == null
? null
: GithubUserContributionsCollection.fromJson(
json['contributionsCollection'] 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
2019-12-07 14:12:48 +01:00
..resolveType = json['__typename'] as String
..login = json['login'] as String
..avatarUrl = json['avatarUrl'] as String
..url = json['url'] as String;
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserUserToJson(GithubUserUser instance) =>
<String, dynamic>{
'name': instance.name,
'bio': instance.bio,
'company': instance.company,
'location': instance.location,
'email': instance.email,
2020-01-01 08:58:49 +01:00
'createdAt': instance.createdAt?.toIso8601String(),
'websiteUrl': instance.websiteUrl,
'starredRepositories': instance.starredRepositories?.toJson(),
'followers': instance.followers?.toJson(),
'following': instance.following?.toJson(),
2020-01-01 06:26:20 +01:00
'contributionsCollection': instance.contributionsCollection?.toJson(),
'repositories': instance.repositories?.toJson(),
'pinnedItems': instance.pinnedItems?.toJson(),
'viewerCanFollow': instance.viewerCanFollow,
'viewerIsFollowing': instance.viewerIsFollowing,
'__typename': instance.resolveType,
2019-12-07 14:12:48 +01:00
'login': instance.login,
'avatarUrl': instance.avatarUrl,
'url': instance.url,
};
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,
};
2020-01-01 06:26:20 +01:00
GithubUserContributionsCollection _$GithubUserContributionsCollectionFromJson(
Map<String, dynamic> json) {
return GithubUserContributionsCollection()
..contributionCalendar = json['contributionCalendar'] == null
? null
: GithubUserContributionCalendar.fromJson(
json['contributionCalendar'] as Map<String, dynamic>);
}
Map<String, dynamic> _$GithubUserContributionsCollectionToJson(
GithubUserContributionsCollection instance) =>
<String, dynamic>{
'contributionCalendar': instance.contributionCalendar?.toJson(),
};
GithubUserContributionCalendar _$GithubUserContributionCalendarFromJson(
Map<String, dynamic> json) {
return GithubUserContributionCalendar()
..weeks = (json['weeks'] as List)
?.map((e) => e == null
? null
: GithubUserContributionCalendarWeek.fromJson(
e as Map<String, dynamic>))
?.toList();
}
Map<String, dynamic> _$GithubUserContributionCalendarToJson(
GithubUserContributionCalendar instance) =>
<String, dynamic>{
'weeks': instance.weeks?.map((e) => e?.toJson())?.toList(),
};
GithubUserContributionCalendarWeek _$GithubUserContributionCalendarWeekFromJson(
Map<String, dynamic> json) {
return GithubUserContributionCalendarWeek()
..contributionDays = (json['contributionDays'] as List)
?.map((e) => e == null
? null
: GithubUserContributionCalendarDay.fromJson(
e as Map<String, dynamic>))
?.toList();
}
Map<String, dynamic> _$GithubUserContributionCalendarWeekToJson(
GithubUserContributionCalendarWeek instance) =>
<String, dynamic>{
'contributionDays':
instance.contributionDays?.map((e) => e?.toJson())?.toList(),
};
GithubUserContributionCalendarDay _$GithubUserContributionCalendarDayFromJson(
Map<String, dynamic> json) {
return GithubUserContributionCalendarDay()..color = json['color'] as String;
}
Map<String, dynamic> _$GithubUserContributionCalendarDayToJson(
GithubUserContributionCalendarDay instance) =>
<String, dynamic>{
'color': instance.color,
};
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) {
2019-12-07 14:12:48 +01:00
return GithubUserActor()..resolveType = json['__typename'] as String;
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserActorToJson(GithubUserActor instance) =>
<String, dynamic>{
'__typename': instance.resolveType,
};
2019-12-07 08:28:43 +01:00
GithubUserProfileOwner _$GithubUserProfileOwnerFromJson(
Map<String, dynamic> json) {
return GithubUserProfileOwner()
..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>{
'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()
..name = json['name'] as String
..description = json['description'] as String
..location = json['location'] as String
..email = json['email'] as String
..websiteUrl = json['websiteUrl'] as String
2020-01-01 08:58:49 +01:00
..createdAt = json['createdAt'] == null
? null
: DateTime.parse(json['createdAt'] 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>)
2019-12-07 14:12:48 +01:00
..resolveType = json['__typename'] as String
..login = json['login'] as String
..avatarUrl = json['avatarUrl'] as String
..url = json['url'] as String;
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserOrganizationToJson(
GithubUserOrganization instance) =>
<String, dynamic>{
'name': instance.name,
'description': instance.description,
'location': instance.location,
'email': instance.email,
'websiteUrl': instance.websiteUrl,
2020-01-01 08:58:49 +01:00
'createdAt': instance.createdAt?.toIso8601String(),
'pinnedItems': instance.pinnedItems?.toJson(),
'pinnableItems': instance.pinnableItems?.toJson(),
'membersWithRole': instance.membersWithRole?.toJson(),
'__typename': instance.resolveType,
2019-12-07 14:12:48 +01:00
'login': instance.login,
'avatarUrl': instance.avatarUrl,
'url': instance.url,
};
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,
2020-01-01 09:35:50 +01:00
isViewer: json['isViewer'] as bool,
);
}
2019-12-07 08:28:43 +01:00
Map<String, dynamic> _$GithubUserArgumentsToJson(
GithubUserArguments instance) =>
<String, dynamic>{
'login': instance.login,
2020-01-01 09:35:50 +01:00
'isViewer': instance.isViewer,
};