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(
|
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-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
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(),
|
2020-01-01 09:35:50 +01:00
|
|
|
'viewer': instance.viewer?.toJson(),
|
2019-12-06 14:51:33 +01:00
|
|
|
};
|
|
|
|
|
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-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>{
|
2019-12-07 14:12:48 +01:00
|
|
|
'login': instance.login,
|
|
|
|
'avatarUrl': instance.avatarUrl,
|
|
|
|
'url': instance.url,
|
2019-12-06 14:51:33 +01:00
|
|
|
'__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
|
|
|
..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)
|
2019-12-06 14:51:33 +01:00
|
|
|
..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>)
|
2020-01-01 06:26:20 +01:00
|
|
|
..contributionsCollection = json['contributionsCollection'] == null
|
|
|
|
? null
|
|
|
|
: GithubUserContributionsCollection.fromJson(
|
|
|
|
json['contributionsCollection'] as Map<String, dynamic>)
|
2019-12-06 14:51:33 +01:00
|
|
|
..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
|
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-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserUserToJson(GithubUserUser instance) =>
|
|
|
|
<String, dynamic>{
|
2019-12-06 14:51:33 +01:00
|
|
|
'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(),
|
2019-12-06 14:51:33 +01:00
|
|
|
'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(),
|
2019-12-06 14:51:33 +01:00
|
|
|
'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-06 14:51:33 +01:00
|
|
|
};
|
|
|
|
|
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,
|
|
|
|
};
|
|
|
|
|
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()
|
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) {
|
2019-12-07 14:12:48 +01:00
|
|
|
return GithubUserActor()..resolveType = json['__typename'] as String;
|
2019-12-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserActorToJson(GithubUserActor instance) =>
|
|
|
|
<String, dynamic>{
|
2019-12-06 14:51:33 +01:00
|
|
|
'__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
|
|
|
..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>{
|
|
|
|
'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
|
|
|
..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)
|
2019-12-06 14:51:33 +01:00
|
|
|
..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>)
|
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-06 14:51:33 +01:00
|
|
|
}
|
|
|
|
|
2019-12-07 08:28:43 +01:00
|
|
|
Map<String, dynamic> _$GithubUserOrganizationToJson(
|
|
|
|
GithubUserOrganization instance) =>
|
2019-12-06 14:51:33 +01:00
|
|
|
<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(),
|
2019-12-06 14:51:33 +01:00
|
|
|
'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-06 14:51:33 +01:00
|
|
|
};
|
|
|
|
|
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,
|
2020-01-01 09:35:50 +01:00
|
|
|
isViewer: json['isViewer'] as bool,
|
2019-12-06 14:51:33 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
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,
|
2020-01-01 09:35:50 +01:00
|
|
|
'isViewer': instance.isViewer,
|
2019-12-06 14:51:33 +01:00
|
|
|
};
|