// GENERATED CODE - DO NOT MODIFY BY HAND part of 'github_user.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GithubUser _$GithubUserFromJson(Map json) { return GithubUser() ..repositoryOwner = json['repositoryOwner'] == null ? null : GithubUserRepositoryOwner.fromJson( json['repositoryOwner'] as Map) ..viewer = json['viewer'] == null ? null : GithubUserUser.fromJson(json['viewer'] as Map); } Map _$GithubUserToJson(GithubUser instance) => { 'repositoryOwner': instance.repositoryOwner?.toJson(), 'viewer': instance.viewer?.toJson(), }; GithubUserRepositoryOwner _$GithubUserRepositoryOwnerFromJson( Map json) { return GithubUserRepositoryOwner() ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String ..url = json['url'] as String ..resolveType = json['__typename'] as String; } Map _$GithubUserRepositoryOwnerToJson( GithubUserRepositoryOwner instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, 'url': instance.url, '__typename': instance.resolveType, }; GithubUserUser _$GithubUserUserFromJson(Map 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 ..createdAt = json['createdAt'] == null ? null : DateTime.parse(json['createdAt'] as String) ..websiteUrl = json['websiteUrl'] as String ..starredRepositories = json['starredRepositories'] == null ? null : GithubUserStarredRepositoryConnection.fromJson( json['starredRepositories'] as Map) ..followers = json['followers'] == null ? null : GithubUserFollowerConnection.fromJson( json['followers'] as Map) ..following = json['following'] == null ? null : GithubUserFollowingConnection.fromJson( json['following'] as Map) ..contributionsCollection = json['contributionsCollection'] == null ? null : GithubUserContributionsCollection.fromJson( json['contributionsCollection'] as Map) ..repositories = json['repositories'] == null ? null : GithubUserRepositoryConnection.fromJson( json['repositories'] as Map) ..pinnedItems = json['pinnedItems'] == null ? null : GithubUserPinnableItemConnection.fromJson( json['pinnedItems'] as Map) ..viewerCanFollow = json['viewerCanFollow'] as bool ..viewerIsFollowing = json['viewerIsFollowing'] as bool ..resolveType = json['__typename'] as String ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String ..url = json['url'] as String; } Map _$GithubUserUserToJson(GithubUserUser instance) => { 'name': instance.name, 'bio': instance.bio, 'company': instance.company, 'location': instance.location, 'email': instance.email, 'createdAt': instance.createdAt?.toIso8601String(), 'websiteUrl': instance.websiteUrl, 'starredRepositories': instance.starredRepositories?.toJson(), 'followers': instance.followers?.toJson(), 'following': instance.following?.toJson(), 'contributionsCollection': instance.contributionsCollection?.toJson(), 'repositories': instance.repositories?.toJson(), 'pinnedItems': instance.pinnedItems?.toJson(), 'viewerCanFollow': instance.viewerCanFollow, 'viewerIsFollowing': instance.viewerIsFollowing, '__typename': instance.resolveType, 'login': instance.login, 'avatarUrl': instance.avatarUrl, 'url': instance.url, }; GithubUserStarredRepositoryConnection _$GithubUserStarredRepositoryConnectionFromJson(Map json) { return GithubUserStarredRepositoryConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubUserStarredRepositoryConnectionToJson( GithubUserStarredRepositoryConnection instance) => { 'totalCount': instance.totalCount, }; GithubUserFollowerConnection _$GithubUserFollowerConnectionFromJson( Map json) { return GithubUserFollowerConnection()..totalCount = json['totalCount'] as int; } Map _$GithubUserFollowerConnectionToJson( GithubUserFollowerConnection instance) => { 'totalCount': instance.totalCount, }; GithubUserFollowingConnection _$GithubUserFollowingConnectionFromJson( Map json) { return GithubUserFollowingConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubUserFollowingConnectionToJson( GithubUserFollowingConnection instance) => { 'totalCount': instance.totalCount, }; GithubUserContributionsCollection _$GithubUserContributionsCollectionFromJson( Map json) { return GithubUserContributionsCollection() ..contributionCalendar = json['contributionCalendar'] == null ? null : GithubUserContributionCalendar.fromJson( json['contributionCalendar'] as Map); } Map _$GithubUserContributionsCollectionToJson( GithubUserContributionsCollection instance) => { 'contributionCalendar': instance.contributionCalendar?.toJson(), }; GithubUserContributionCalendar _$GithubUserContributionCalendarFromJson( Map json) { return GithubUserContributionCalendar() ..weeks = (json['weeks'] as List) ?.map((e) => e == null ? null : GithubUserContributionCalendarWeek.fromJson( e as Map)) ?.toList(); } Map _$GithubUserContributionCalendarToJson( GithubUserContributionCalendar instance) => { 'weeks': instance.weeks?.map((e) => e?.toJson())?.toList(), }; GithubUserContributionCalendarWeek _$GithubUserContributionCalendarWeekFromJson( Map json) { return GithubUserContributionCalendarWeek() ..contributionDays = (json['contributionDays'] as List) ?.map((e) => e == null ? null : GithubUserContributionCalendarDay.fromJson( e as Map)) ?.toList(); } Map _$GithubUserContributionCalendarWeekToJson( GithubUserContributionCalendarWeek instance) => { 'contributionDays': instance.contributionDays?.map((e) => e?.toJson())?.toList(), }; GithubUserContributionCalendarDay _$GithubUserContributionCalendarDayFromJson( Map json) { return GithubUserContributionCalendarDay()..color = json['color'] as String; } Map _$GithubUserContributionCalendarDayToJson( GithubUserContributionCalendarDay instance) => { 'color': instance.color, }; GithubUserRepositoryConnection _$GithubUserRepositoryConnectionFromJson( Map json) { return GithubUserRepositoryConnection() ..totalCount = json['totalCount'] as int ..nodes = (json['nodes'] as List) ?.map((e) => e == null ? null : GithubUserRepository.fromJson(e as Map)) ?.toList(); } Map _$GithubUserRepositoryConnectionToJson( GithubUserRepositoryConnection instance) => { 'totalCount': instance.totalCount, 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GithubUserRepository _$GithubUserRepositoryFromJson(Map json) { return GithubUserRepository() ..owner = json['owner'] == null ? null : GithubUserRepositoryOwner.fromJson( json['owner'] as Map) ..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 : GithubUserStargazerConnection.fromJson( json['stargazers'] as Map) ..forks = json['forks'] == null ? null : GithubUserRepositoryConnection.fromJson( json['forks'] as Map) ..primaryLanguage = json['primaryLanguage'] == null ? null : GithubUserLanguage.fromJson( json['primaryLanguage'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubUserRepositoryToJson( GithubUserRepository instance) => { '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, }; GithubUserStargazerConnection _$GithubUserStargazerConnectionFromJson( Map json) { return GithubUserStargazerConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubUserStargazerConnectionToJson( GithubUserStargazerConnection instance) => { 'totalCount': instance.totalCount, }; GithubUserLanguage _$GithubUserLanguageFromJson(Map json) { return GithubUserLanguage() ..color = json['color'] as String ..name = json['name'] as String ..resolveType = json['__typename'] as String; } Map _$GithubUserLanguageToJson(GithubUserLanguage instance) => { 'color': instance.color, 'name': instance.name, '__typename': instance.resolveType, }; GithubUserNode _$GithubUserNodeFromJson(Map json) { return GithubUserNode()..resolveType = json['__typename'] as String; } Map _$GithubUserNodeToJson(GithubUserNode instance) => { '__typename': instance.resolveType, }; GithubUserPinnableItem _$GithubUserPinnableItemFromJson( Map json) { return GithubUserPinnableItem(); } Map _$GithubUserPinnableItemToJson( GithubUserPinnableItem instance) => {}; GithubUserProjectOwner _$GithubUserProjectOwnerFromJson( Map json) { return GithubUserProjectOwner()..resolveType = json['__typename'] as String; } Map _$GithubUserProjectOwnerToJson( GithubUserProjectOwner instance) => { '__typename': instance.resolveType, }; GithubUserRegistryPackageOwner _$GithubUserRegistryPackageOwnerFromJson( Map json) { return GithubUserRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GithubUserRegistryPackageOwnerToJson( GithubUserRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GithubUserRegistryPackageSearch _$GithubUserRegistryPackageSearchFromJson( Map json) { return GithubUserRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GithubUserRegistryPackageSearchToJson( GithubUserRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GithubUserSubscribable _$GithubUserSubscribableFromJson( Map json) { return GithubUserSubscribable()..resolveType = json['__typename'] as String; } Map _$GithubUserSubscribableToJson( GithubUserSubscribable instance) => { '__typename': instance.resolveType, }; GithubUserStarrable _$GithubUserStarrableFromJson(Map json) { return GithubUserStarrable() ..stargazers = json['stargazers'] == null ? null : GithubUserStargazerConnection.fromJson( json['stargazers'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubUserStarrableToJson( GithubUserStarrable instance) => { 'stargazers': instance.stargazers?.toJson(), '__typename': instance.resolveType, }; GithubUserUniformResourceLocatable _$GithubUserUniformResourceLocatableFromJson( Map json) { return GithubUserUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GithubUserUniformResourceLocatableToJson( GithubUserUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GithubUserRepositoryInfo _$GithubUserRepositoryInfoFromJson( Map json) { return GithubUserRepositoryInfo() ..owner = json['owner'] == null ? null : GithubUserRepositoryOwner.fromJson( json['owner'] as Map) ..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; } Map _$GithubUserRepositoryInfoToJson( GithubUserRepositoryInfo instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, 'description': instance.description, 'isPrivate': instance.isPrivate, 'isFork': instance.isFork, '__typename': instance.resolveType, }; GithubUserPinnableItemConnection _$GithubUserPinnableItemConnectionFromJson( Map json) { return GithubUserPinnableItemConnection() ..totalCount = json['totalCount'] as int ..nodes = (json['nodes'] as List) ?.map((e) => e == null ? null : GithubUserPinnableItem.fromJson(e as Map)) ?.toList(); } Map _$GithubUserPinnableItemConnectionToJson( GithubUserPinnableItemConnection instance) => { 'totalCount': instance.totalCount, 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GithubUserAuditEntryActor _$GithubUserAuditEntryActorFromJson( Map json) { return GithubUserAuditEntryActor(); } Map _$GithubUserAuditEntryActorToJson( GithubUserAuditEntryActor instance) => {}; GithubUserActor _$GithubUserActorFromJson(Map json) { return GithubUserActor()..resolveType = json['__typename'] as String; } Map _$GithubUserActorToJson(GithubUserActor instance) => { '__typename': instance.resolveType, }; GithubUserProfileOwner _$GithubUserProfileOwnerFromJson( Map 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 : GithubUserPinnableItemConnection.fromJson( json['pinnedItems'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubUserProfileOwnerToJson( GithubUserProfileOwner instance) => { 'name': instance.name, 'location': instance.location, 'email': instance.email, 'websiteUrl': instance.websiteUrl, 'pinnedItems': instance.pinnedItems?.toJson(), '__typename': instance.resolveType, }; GithubUserSponsorable _$GithubUserSponsorableFromJson( Map json) { return GithubUserSponsorable()..resolveType = json['__typename'] as String; } Map _$GithubUserSponsorableToJson( GithubUserSponsorable instance) => { '__typename': instance.resolveType, }; GithubUserOrganization _$GithubUserOrganizationFromJson( Map 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 ..createdAt = json['createdAt'] == null ? null : DateTime.parse(json['createdAt'] as String) ..pinnedItems = json['pinnedItems'] == null ? null : GithubUserPinnableItemConnection.fromJson( json['pinnedItems'] as Map) ..pinnableItems = json['pinnableItems'] == null ? null : GithubUserPinnableItemConnection.fromJson( json['pinnableItems'] as Map) ..membersWithRole = json['membersWithRole'] == null ? null : GithubUserOrganizationMemberConnection.fromJson( json['membersWithRole'] as Map) ..resolveType = json['__typename'] as String ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String ..url = json['url'] as String; } Map _$GithubUserOrganizationToJson( GithubUserOrganization instance) => { 'name': instance.name, 'description': instance.description, 'location': instance.location, 'email': instance.email, 'websiteUrl': instance.websiteUrl, 'createdAt': instance.createdAt?.toIso8601String(), 'pinnedItems': instance.pinnedItems?.toJson(), 'pinnableItems': instance.pinnableItems?.toJson(), 'membersWithRole': instance.membersWithRole?.toJson(), '__typename': instance.resolveType, 'login': instance.login, 'avatarUrl': instance.avatarUrl, 'url': instance.url, }; GithubUserOrganizationMemberConnection _$GithubUserOrganizationMemberConnectionFromJson( Map json) { return GithubUserOrganizationMemberConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubUserOrganizationMemberConnectionToJson( GithubUserOrganizationMemberConnection instance) => { 'totalCount': instance.totalCount, }; GithubUserMemberStatusable _$GithubUserMemberStatusableFromJson( Map json) { return GithubUserMemberStatusable() ..resolveType = json['__typename'] as String; } Map _$GithubUserMemberStatusableToJson( GithubUserMemberStatusable instance) => { '__typename': instance.resolveType, }; GithubUserArguments _$GithubUserArgumentsFromJson(Map json) { return GithubUserArguments( login: json['login'] as String, isViewer: json['isViewer'] as bool, ); } Map _$GithubUserArgumentsToJson( GithubUserArguments instance) => { 'login': instance.login, 'isViewer': instance.isViewer, };