// GENERATED CODE - DO NOT MODIFY BY HAND part of 'gh.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GhRepo _$GhRepoFromJson(Map json) { return GhRepo( repository: json['repository'] == null ? null : GhRepoRepository.fromJson(json['repository'] as Map), ); } Map _$GhRepoToJson(GhRepo instance) => { 'repository': instance.repository?.toJson(), }; GhRepoRepository _$GhRepoRepositoryFromJson(Map json) { return GhRepoRepository( forks: json['forks'] == null ? null : GhRepoRepositoryConnection.fromJson( json['forks'] as Map), primaryLanguage: json['primaryLanguage'] == null ? null : GhRepoLanguage.fromJson( json['primaryLanguage'] as Map), diskUsage: json['diskUsage'] as int, watchers: json['watchers'] == null ? null : GhRepoUserConnection.fromJson( json['watchers'] as Map), issues: json['issues'] == null ? null : GhRepoIssueConnection.fromJson( json['issues'] as Map), pullRequests: json['pullRequests'] == null ? null : GhRepoPullRequestConnection.fromJson( json['pullRequests'] as Map), releases: json['releases'] == null ? null : GhRepoReleaseConnection.fromJson( json['releases'] as Map), languages: json['languages'] == null ? null : GhRepoLanguageConnection.fromJson( json['languages'] as Map), defaultBranchRef: json['defaultBranchRef'] == null ? null : GhRepoRef.fromJson(json['defaultBranchRef'] as Map), ref: json['ref'] == null ? null : GhRepoRef.fromJson(json['ref'] as Map), refs: json['refs'] == null ? null : GhRepoRefConnection.fromJson(json['refs'] as Map), repositoryTopics: json['repositoryTopics'] == null ? null : GhRepoRepositoryTopicConnection.fromJson( json['repositoryTopics'] as Map), ) ..owner = json['owner'] == null ? null : GhRepoRepositoryOwner.fromJson(json['owner'] as Map) ..name = json['name'] as String ..description = json['description'] as String ..homepageUrl = json['homepageUrl'] as String ..isPrivate = json['isPrivate'] as bool ..isFork = json['isFork'] as bool ..stargazers = json['stargazers'] == null ? null : GhRepoStargazerConnection.fromJson( json['stargazers'] as Map) ..id = json['id'] as String ..hasIssuesEnabled = json['hasIssuesEnabled'] as bool ..url = json['url'] as String ..viewerHasStarred = json['viewerHasStarred'] as bool ..viewerSubscription = _$enumDecodeNullable( _$GhRepoSubscriptionStateEnumMap, json['viewerSubscription']) ..projectsUrl = json['projectsUrl'] as String ..projects = json['projects'] == null ? null : GhRepoProjectConnection.fromJson( json['projects'] as Map) ..licenseInfo = json['licenseInfo'] == null ? null : GhRepoLicense.fromJson(json['licenseInfo'] as Map) ..resolveType = json['__typename'] as String; } Map _$GhRepoRepositoryToJson(GhRepoRepository instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, 'description': instance.description, 'homepageUrl': instance.homepageUrl, 'isPrivate': instance.isPrivate, 'isFork': instance.isFork, 'stargazers': instance.stargazers?.toJson(), 'forks': instance.forks?.toJson(), 'primaryLanguage': instance.primaryLanguage?.toJson(), 'id': instance.id, 'diskUsage': instance.diskUsage, 'hasIssuesEnabled': instance.hasIssuesEnabled, 'url': instance.url, 'viewerHasStarred': instance.viewerHasStarred, 'viewerSubscription': _$GhRepoSubscriptionStateEnumMap[instance.viewerSubscription], 'projectsUrl': instance.projectsUrl, 'watchers': instance.watchers?.toJson(), 'issues': instance.issues?.toJson(), 'pullRequests': instance.pullRequests?.toJson(), 'projects': instance.projects?.toJson(), 'releases': instance.releases?.toJson(), 'languages': instance.languages?.toJson(), 'defaultBranchRef': instance.defaultBranchRef?.toJson(), 'ref': instance.ref?.toJson(), 'refs': instance.refs?.toJson(), 'licenseInfo': instance.licenseInfo?.toJson(), 'repositoryTopics': instance.repositoryTopics?.toJson(), '__typename': instance.resolveType, }; T _$enumDecode( Map enumValues, dynamic source, { T unknownValue, }) { if (source == null) { throw ArgumentError('A value must be provided. Supported values: ' '${enumValues.values.join(', ')}'); } final value = enumValues.entries .singleWhere((e) => e.value == source, orElse: () => null) ?.key; if (value == null && unknownValue == null) { throw ArgumentError('`$source` is not one of the supported values: ' '${enumValues.values.join(', ')}'); } return value ?? unknownValue; } T _$enumDecodeNullable( Map enumValues, dynamic source, { T unknownValue, }) { if (source == null) { return null; } return _$enumDecode(enumValues, source, unknownValue: unknownValue); } const _$GhRepoSubscriptionStateEnumMap = { GhRepoSubscriptionState.UNSUBSCRIBED: 'UNSUBSCRIBED', GhRepoSubscriptionState.SUBSCRIBED: 'SUBSCRIBED', GhRepoSubscriptionState.IGNORED: 'IGNORED', }; GhRepoRepositoryOwner _$GhRepoRepositoryOwnerFromJson( Map json) { return GhRepoRepositoryOwner( login: json['login'] as String, avatarUrl: json['avatarUrl'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoRepositoryOwnerToJson( GhRepoRepositoryOwner instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, '__typename': instance.resolveType, }; GhRepoStargazerConnection _$GhRepoStargazerConnectionFromJson( Map json) { return GhRepoStargazerConnection( totalCount: json['totalCount'] as int, ); } Map _$GhRepoStargazerConnectionToJson( GhRepoStargazerConnection instance) => { 'totalCount': instance.totalCount, }; GhRepoRepositoryConnection _$GhRepoRepositoryConnectionFromJson( Map json) { return GhRepoRepositoryConnection( totalCount: json['totalCount'] as int, ); } Map _$GhRepoRepositoryConnectionToJson( GhRepoRepositoryConnection instance) => { 'totalCount': instance.totalCount, }; GhRepoLanguage _$GhRepoLanguageFromJson(Map json) { return GhRepoLanguage( color: json['color'] as String, name: json['name'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoLanguageToJson(GhRepoLanguage instance) => { 'color': instance.color, 'name': instance.name, '__typename': instance.resolveType, }; GhRepoNode _$GhRepoNodeFromJson(Map json) { return GhRepoNode()..resolveType = json['__typename'] as String; } Map _$GhRepoNodeToJson(GhRepoNode instance) => { '__typename': instance.resolveType, }; GhRepoUserConnection _$GhRepoUserConnectionFromJson(Map json) { return GhRepoUserConnection( totalCount: json['totalCount'] as int, ); } Map _$GhRepoUserConnectionToJson( GhRepoUserConnection instance) => { 'totalCount': instance.totalCount, }; GhRepoIssueConnection _$GhRepoIssueConnectionFromJson( Map json) { return GhRepoIssueConnection( totalCount: json['totalCount'] as int, ); } Map _$GhRepoIssueConnectionToJson( GhRepoIssueConnection instance) => { 'totalCount': instance.totalCount, }; GhRepoPullRequestConnection _$GhRepoPullRequestConnectionFromJson( Map json) { return GhRepoPullRequestConnection( totalCount: json['totalCount'] as int, ); } Map _$GhRepoPullRequestConnectionToJson( GhRepoPullRequestConnection instance) => { 'totalCount': instance.totalCount, }; GhRepoProjectConnection _$GhRepoProjectConnectionFromJson( Map json) { return GhRepoProjectConnection( totalCount: json['totalCount'] as int, ); } Map _$GhRepoProjectConnectionToJson( GhRepoProjectConnection instance) => { 'totalCount': instance.totalCount, }; GhRepoReleaseConnection _$GhRepoReleaseConnectionFromJson( Map json) { return GhRepoReleaseConnection( totalCount: json['totalCount'] as int, ); } Map _$GhRepoReleaseConnectionToJson( GhRepoReleaseConnection instance) => { 'totalCount': instance.totalCount, }; GhRepoLanguageConnection _$GhRepoLanguageConnectionFromJson( Map json) { return GhRepoLanguageConnection( totalSize: json['totalSize'] as int, edges: (json['edges'] as List) ?.map((e) => e == null ? null : GhRepoLanguageEdge.fromJson(e as Map)) ?.toList(), ); } Map _$GhRepoLanguageConnectionToJson( GhRepoLanguageConnection instance) => { 'totalSize': instance.totalSize, 'edges': instance.edges?.map((e) => e?.toJson())?.toList(), }; GhRepoLanguageEdge _$GhRepoLanguageEdgeFromJson(Map json) { return GhRepoLanguageEdge( size: json['size'] as int, node: json['node'] == null ? null : GhRepoLanguage.fromJson(json['node'] as Map), ); } Map _$GhRepoLanguageEdgeToJson(GhRepoLanguageEdge instance) => { 'size': instance.size, 'node': instance.node?.toJson(), }; GhRepoRef _$GhRepoRefFromJson(Map json) { return GhRepoRef( name: json['name'] as String, target: json['target'] == null ? null : GhRepoGitObject.fromJson(json['target'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhRepoRefToJson(GhRepoRef instance) => { 'name': instance.name, 'target': instance.target?.toJson(), '__typename': instance.resolveType, }; GhRepoGitObject _$GhRepoGitObjectFromJson(Map json) { return GhRepoGitObject()..resolveType = json['__typename'] as String; } Map _$GhRepoGitObjectToJson(GhRepoGitObject instance) => { '__typename': instance.resolveType, }; GhRepoCommit _$GhRepoCommitFromJson(Map json) { return GhRepoCommit( history: json['history'] == null ? null : GhRepoCommitHistoryConnection.fromJson( json['history'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhRepoCommitToJson(GhRepoCommit instance) => { 'history': instance.history?.toJson(), '__typename': instance.resolveType, }; GhRepoCommitHistoryConnection _$GhRepoCommitHistoryConnectionFromJson( Map json) { return GhRepoCommitHistoryConnection( totalCount: json['totalCount'] as int, ); } Map _$GhRepoCommitHistoryConnectionToJson( GhRepoCommitHistoryConnection instance) => { 'totalCount': instance.totalCount, }; GhRepoPullRequestTimelineItem _$GhRepoPullRequestTimelineItemFromJson( Map json) { return GhRepoPullRequestTimelineItem(); } Map _$GhRepoPullRequestTimelineItemToJson( GhRepoPullRequestTimelineItem instance) => {}; GhRepoSubscribable _$GhRepoSubscribableFromJson(Map json) { return GhRepoSubscribable()..resolveType = json['__typename'] as String; } Map _$GhRepoSubscribableToJson(GhRepoSubscribable instance) => { '__typename': instance.resolveType, }; GhRepoUniformResourceLocatable _$GhRepoUniformResourceLocatableFromJson( Map json) { return GhRepoUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhRepoUniformResourceLocatableToJson( GhRepoUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhRepoRefConnection _$GhRepoRefConnectionFromJson(Map json) { return GhRepoRefConnection( totalCount: json['totalCount'] as int, nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhRepoRef.fromJson(e as Map)) ?.toList(), ); } Map _$GhRepoRefConnectionToJson( GhRepoRefConnection instance) => { 'totalCount': instance.totalCount, 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhRepoLicense _$GhRepoLicenseFromJson(Map json) { return GhRepoLicense( name: json['name'] as String, spdxId: json['spdxId'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoLicenseToJson(GhRepoLicense instance) => { 'name': instance.name, 'spdxId': instance.spdxId, '__typename': instance.resolveType, }; GhRepoRepositoryTopicConnection _$GhRepoRepositoryTopicConnectionFromJson( Map json) { return GhRepoRepositoryTopicConnection( nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhRepoRepositoryTopic.fromJson(e as Map)) ?.toList(), ); } Map _$GhRepoRepositoryTopicConnectionToJson( GhRepoRepositoryTopicConnection instance) => { 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhRepoRepositoryTopic _$GhRepoRepositoryTopicFromJson( Map json) { return GhRepoRepositoryTopic( topic: json['topic'] == null ? null : GhRepoTopic.fromJson(json['topic'] as Map), ) ..url = json['url'] as String ..resolveType = json['__typename'] as String; } Map _$GhRepoRepositoryTopicToJson( GhRepoRepositoryTopic instance) => { 'url': instance.url, 'topic': instance.topic?.toJson(), '__typename': instance.resolveType, }; GhRepoTopic _$GhRepoTopicFromJson(Map json) { return GhRepoTopic( name: json['name'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoTopicToJson(GhRepoTopic instance) => { 'name': instance.name, '__typename': instance.resolveType, }; GhRepoStarrable _$GhRepoStarrableFromJson(Map json) { return GhRepoStarrable()..resolveType = json['__typename'] as String; } Map _$GhRepoStarrableToJson(GhRepoStarrable instance) => { '__typename': instance.resolveType, }; GhRepoPinnableItem _$GhRepoPinnableItemFromJson(Map json) { return GhRepoPinnableItem(); } Map _$GhRepoPinnableItemToJson(GhRepoPinnableItem instance) => {}; GhRepoProjectOwner _$GhRepoProjectOwnerFromJson(Map json) { return GhRepoProjectOwner( id: json['id'] as String, projectsUrl: json['projectsUrl'] as String, projects: json['projects'] == null ? null : GhRepoProjectConnection.fromJson( json['projects'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhRepoProjectOwnerToJson(GhRepoProjectOwner instance) => { 'id': instance.id, 'projectsUrl': instance.projectsUrl, 'projects': instance.projects?.toJson(), '__typename': instance.resolveType, }; GhRepoRegistryPackageOwner _$GhRepoRegistryPackageOwnerFromJson( Map json) { return GhRepoRegistryPackageOwner( id: json['id'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoRegistryPackageOwnerToJson( GhRepoRegistryPackageOwner instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GhRepoRegistryPackageSearch _$GhRepoRegistryPackageSearchFromJson( Map json) { return GhRepoRegistryPackageSearch( id: json['id'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoRegistryPackageSearchToJson( GhRepoRegistryPackageSearch instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GhRepoRepositoryInfo _$GhRepoRepositoryInfoFromJson(Map json) { return GhRepoRepositoryInfo( owner: json['owner'] == null ? null : GhRepoRepositoryOwner.fromJson(json['owner'] as Map), name: json['name'] as String, description: json['description'] as String, homepageUrl: json['homepageUrl'] as String, isPrivate: json['isPrivate'] as bool, isFork: json['isFork'] as bool, hasIssuesEnabled: json['hasIssuesEnabled'] as bool, url: json['url'] as String, licenseInfo: json['licenseInfo'] == null ? null : GhRepoLicense.fromJson(json['licenseInfo'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhRepoRepositoryInfoToJson( GhRepoRepositoryInfo instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, 'description': instance.description, 'homepageUrl': instance.homepageUrl, 'isPrivate': instance.isPrivate, 'isFork': instance.isFork, 'hasIssuesEnabled': instance.hasIssuesEnabled, 'url': instance.url, 'licenseInfo': instance.licenseInfo?.toJson(), '__typename': instance.resolveType, }; GhRepoArguments _$GhRepoArgumentsFromJson(Map json) { return GhRepoArguments( owner: json['owner'] as String, name: json['name'] as String, branchSpecified: json['branchSpecified'] as bool, branch: json['branch'] as String, ); } Map _$GhRepoArgumentsToJson(GhRepoArguments instance) => { 'owner': instance.owner, 'name': instance.name, 'branchSpecified': instance.branchSpecified, 'branch': instance.branch, }; GhUsers _$GhUsersFromJson(Map json) { return GhUsers( user: json['user'] == null ? null : GhUsersUser.fromJson(json['user'] as Map), organization: json['organization'] == null ? null : GhUsersOrganization.fromJson( json['organization'] as Map), repository: json['repository'] == null ? null : GhUsersRepository.fromJson( json['repository'] as Map), ); } Map _$GhUsersToJson(GhUsers instance) => { 'user': instance.user?.toJson(), 'organization': instance.organization?.toJson(), 'repository': instance.repository?.toJson(), }; GhUsersUser _$GhUsersUserFromJson(Map json) { return GhUsersUser( company: json['company'] as String, createdAt: json['createdAt'] == null ? null : DateTime.parse(json['createdAt'] as String), followers: json['followers'] == null ? null : GhUsersFollowerConnection.fromJson( json['followers'] as Map), following: json['following'] == null ? null : GhUsersFollowingConnection.fromJson( json['following'] as Map), ) ..login = json['login'] as String ..name = json['name'] as String ..avatarUrl = json['avatarUrl'] as String ..location = json['location'] as String ..resolveType = json['__typename'] as String; } Map _$GhUsersUserToJson(GhUsersUser instance) => { 'login': instance.login, 'name': instance.name, 'avatarUrl': instance.avatarUrl, 'company': instance.company, 'location': instance.location, 'createdAt': instance.createdAt?.toIso8601String(), 'followers': instance.followers?.toJson(), 'following': instance.following?.toJson(), '__typename': instance.resolveType, }; GhUsersFollowerConnection _$GhUsersFollowerConnectionFromJson( Map json) { return GhUsersFollowerConnection( pageInfo: json['pageInfo'] == null ? null : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) ?.toList(), ); } Map _$GhUsersFollowerConnectionToJson( GhUsersFollowerConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhUsersPageInfo _$GhUsersPageInfoFromJson(Map json) { return GhUsersPageInfo( hasNextPage: json['hasNextPage'] as bool, endCursor: json['endCursor'] as String, ); } Map _$GhUsersPageInfoToJson(GhUsersPageInfo instance) => { 'hasNextPage': instance.hasNextPage, 'endCursor': instance.endCursor, }; GhUsersAuditEntryActor _$GhUsersAuditEntryActorFromJson( Map json) { return GhUsersAuditEntryActor(); } Map _$GhUsersAuditEntryActorToJson( GhUsersAuditEntryActor instance) => {}; GhUsersNode _$GhUsersNodeFromJson(Map json) { return GhUsersNode()..resolveType = json['__typename'] as String; } Map _$GhUsersNodeToJson(GhUsersNode instance) => { '__typename': instance.resolveType, }; GhUsersActor _$GhUsersActorFromJson(Map json) { return GhUsersActor( login: json['login'] as String, avatarUrl: json['avatarUrl'] as String, )..resolveType = json['__typename'] as String; } Map _$GhUsersActorToJson(GhUsersActor instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, '__typename': instance.resolveType, }; GhUsersRegistryPackageOwner _$GhUsersRegistryPackageOwnerFromJson( Map json) { return GhUsersRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhUsersRegistryPackageOwnerToJson( GhUsersRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhUsersRegistryPackageSearch _$GhUsersRegistryPackageSearchFromJson( Map json) { return GhUsersRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhUsersRegistryPackageSearchToJson( GhUsersRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhUsersProjectOwner _$GhUsersProjectOwnerFromJson(Map json) { return GhUsersProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhUsersProjectOwnerToJson( GhUsersProjectOwner instance) => { '__typename': instance.resolveType, }; GhUsersRepositoryOwner _$GhUsersRepositoryOwnerFromJson( Map json) { return GhUsersRepositoryOwner( login: json['login'] as String, avatarUrl: json['avatarUrl'] as String, )..resolveType = json['__typename'] as String; } Map _$GhUsersRepositoryOwnerToJson( GhUsersRepositoryOwner instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, '__typename': instance.resolveType, }; GhUsersUniformResourceLocatable _$GhUsersUniformResourceLocatableFromJson( Map json) { return GhUsersUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhUsersUniformResourceLocatableToJson( GhUsersUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhUsersProfileOwner _$GhUsersProfileOwnerFromJson(Map json) { return GhUsersProfileOwner( login: json['login'] as String, name: json['name'] as String, location: json['location'] as String, )..resolveType = json['__typename'] as String; } Map _$GhUsersProfileOwnerToJson( GhUsersProfileOwner instance) => { 'login': instance.login, 'name': instance.name, 'location': instance.location, '__typename': instance.resolveType, }; GhUsersSponsorable _$GhUsersSponsorableFromJson(Map json) { return GhUsersSponsorable()..resolveType = json['__typename'] as String; } Map _$GhUsersSponsorableToJson(GhUsersSponsorable instance) => { '__typename': instance.resolveType, }; GhUsersFollowingConnection _$GhUsersFollowingConnectionFromJson( Map json) { return GhUsersFollowingConnection( pageInfo: json['pageInfo'] == null ? null : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) ?.toList(), ); } Map _$GhUsersFollowingConnectionToJson( GhUsersFollowingConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhUsersOrganization _$GhUsersOrganizationFromJson(Map json) { return GhUsersOrganization( membersWithRole: json['membersWithRole'] == null ? null : GhUsersOrganizationMemberConnection.fromJson( json['membersWithRole'] as Map), ) ..login = json['login'] as String ..name = json['name'] as String ..avatarUrl = json['avatarUrl'] as String ..location = json['location'] as String ..resolveType = json['__typename'] as String; } Map _$GhUsersOrganizationToJson( GhUsersOrganization instance) => { 'login': instance.login, 'name': instance.name, 'avatarUrl': instance.avatarUrl, 'location': instance.location, 'membersWithRole': instance.membersWithRole?.toJson(), '__typename': instance.resolveType, }; GhUsersOrganizationMemberConnection _$GhUsersOrganizationMemberConnectionFromJson(Map json) { return GhUsersOrganizationMemberConnection( pageInfo: json['pageInfo'] == null ? null : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) ?.toList(), ); } Map _$GhUsersOrganizationMemberConnectionToJson( GhUsersOrganizationMemberConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhUsersMemberStatusable _$GhUsersMemberStatusableFromJson( Map json) { return GhUsersMemberStatusable()..resolveType = json['__typename'] as String; } Map _$GhUsersMemberStatusableToJson( GhUsersMemberStatusable instance) => { '__typename': instance.resolveType, }; GhUsersRepository _$GhUsersRepositoryFromJson(Map json) { return GhUsersRepository( watchers: json['watchers'] == null ? null : GhUsersUserConnection.fromJson( json['watchers'] as Map), ) ..stargazers = json['stargazers'] == null ? null : GhUsersStargazerConnection.fromJson( json['stargazers'] as Map) ..resolveType = json['__typename'] as String; } Map _$GhUsersRepositoryToJson(GhUsersRepository instance) => { 'watchers': instance.watchers?.toJson(), 'stargazers': instance.stargazers?.toJson(), '__typename': instance.resolveType, }; GhUsersUserConnection _$GhUsersUserConnectionFromJson( Map json) { return GhUsersUserConnection( pageInfo: json['pageInfo'] == null ? null : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) ?.toList(), ); } Map _$GhUsersUserConnectionToJson( GhUsersUserConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhUsersStargazerConnection _$GhUsersStargazerConnectionFromJson( Map json) { return GhUsersStargazerConnection( pageInfo: json['pageInfo'] == null ? null : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) ?.toList(), ); } Map _$GhUsersStargazerConnectionToJson( GhUsersStargazerConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhUsersPinnableItem _$GhUsersPinnableItemFromJson(Map json) { return GhUsersPinnableItem(); } Map _$GhUsersPinnableItemToJson( GhUsersPinnableItem instance) => {}; GhUsersSubscribable _$GhUsersSubscribableFromJson(Map json) { return GhUsersSubscribable()..resolveType = json['__typename'] as String; } Map _$GhUsersSubscribableToJson( GhUsersSubscribable instance) => { '__typename': instance.resolveType, }; GhUsersStarrable _$GhUsersStarrableFromJson(Map json) { return GhUsersStarrable( stargazers: json['stargazers'] == null ? null : GhUsersStargazerConnection.fromJson( json['stargazers'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhUsersStarrableToJson(GhUsersStarrable instance) => { 'stargazers': instance.stargazers?.toJson(), '__typename': instance.resolveType, }; GhUsersRepositoryInfo _$GhUsersRepositoryInfoFromJson( Map json) { return GhUsersRepositoryInfo()..resolveType = json['__typename'] as String; } Map _$GhUsersRepositoryInfoToJson( GhUsersRepositoryInfo instance) => { '__typename': instance.resolveType, }; GhUsersArguments _$GhUsersArgumentsFromJson(Map json) { return GhUsersArguments( login: json['login'] as String, repoName: json['repoName'] as String, after: json['after'] as String, isFollowers: json['isFollowers'] as bool, isFollowing: json['isFollowing'] as bool, isMember: json['isMember'] as bool, isStar: json['isStar'] as bool, isWatch: json['isWatch'] as bool, ); } Map _$GhUsersArgumentsToJson(GhUsersArguments instance) => { 'login': instance.login, 'repoName': instance.repoName, 'after': instance.after, 'isFollowers': instance.isFollowers, 'isFollowing': instance.isFollowing, 'isMember': instance.isMember, 'isStar': instance.isStar, 'isWatch': instance.isWatch, }; GhCreateIssue _$GhCreateIssueFromJson(Map json) { return GhCreateIssue( createIssue: json['createIssue'] == null ? null : GhCreateIssueCreateIssuePayload.fromJson( json['createIssue'] as Map), ); } Map _$GhCreateIssueToJson(GhCreateIssue instance) => { 'createIssue': instance.createIssue?.toJson(), }; GhCreateIssueCreateIssuePayload _$GhCreateIssueCreateIssuePayloadFromJson( Map json) { return GhCreateIssueCreateIssuePayload( issue: json['issue'] == null ? null : GhCreateIssueIssue.fromJson(json['issue'] as Map), ); } Map _$GhCreateIssueCreateIssuePayloadToJson( GhCreateIssueCreateIssuePayload instance) => { 'issue': instance.issue?.toJson(), }; GhCreateIssueIssue _$GhCreateIssueIssueFromJson(Map json) { return GhCreateIssueIssue( number: json['number'] as int, ) ..repository = json['repository'] == null ? null : GhCreateIssueRepository.fromJson( json['repository'] as Map) ..resolveType = json['__typename'] as String; } Map _$GhCreateIssueIssueToJson(GhCreateIssueIssue instance) => { 'number': instance.number, 'repository': instance.repository?.toJson(), '__typename': instance.resolveType, }; GhCreateIssueRepository _$GhCreateIssueRepositoryFromJson( Map json) { return GhCreateIssueRepository() ..owner = json['owner'] == null ? null : GhCreateIssueRepositoryOwner.fromJson( json['owner'] as Map) ..name = json['name'] as String ..resolveType = json['__typename'] as String; } Map _$GhCreateIssueRepositoryToJson( GhCreateIssueRepository instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, '__typename': instance.resolveType, }; GhCreateIssueRepositoryOwner _$GhCreateIssueRepositoryOwnerFromJson( Map json) { return GhCreateIssueRepositoryOwner( login: json['login'] as String, )..resolveType = json['__typename'] as String; } Map _$GhCreateIssueRepositoryOwnerToJson( GhCreateIssueRepositoryOwner instance) => { 'login': instance.login, '__typename': instance.resolveType, }; GhCreateIssuePinnableItem _$GhCreateIssuePinnableItemFromJson( Map json) { return GhCreateIssuePinnableItem(); } Map _$GhCreateIssuePinnableItemToJson( GhCreateIssuePinnableItem instance) => {}; GhCreateIssueNode _$GhCreateIssueNodeFromJson(Map json) { return GhCreateIssueNode()..resolveType = json['__typename'] as String; } Map _$GhCreateIssueNodeToJson(GhCreateIssueNode instance) => { '__typename': instance.resolveType, }; GhCreateIssueProjectOwner _$GhCreateIssueProjectOwnerFromJson( Map json) { return GhCreateIssueProjectOwner() ..resolveType = json['__typename'] as String; } Map _$GhCreateIssueProjectOwnerToJson( GhCreateIssueProjectOwner instance) => { '__typename': instance.resolveType, }; GhCreateIssueRegistryPackageOwner _$GhCreateIssueRegistryPackageOwnerFromJson( Map json) { return GhCreateIssueRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhCreateIssueRegistryPackageOwnerToJson( GhCreateIssueRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhCreateIssueRegistryPackageSearch _$GhCreateIssueRegistryPackageSearchFromJson( Map json) { return GhCreateIssueRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhCreateIssueRegistryPackageSearchToJson( GhCreateIssueRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhCreateIssueSubscribable _$GhCreateIssueSubscribableFromJson( Map json) { return GhCreateIssueSubscribable() ..resolveType = json['__typename'] as String; } Map _$GhCreateIssueSubscribableToJson( GhCreateIssueSubscribable instance) => { '__typename': instance.resolveType, }; GhCreateIssueStarrable _$GhCreateIssueStarrableFromJson( Map json) { return GhCreateIssueStarrable()..resolveType = json['__typename'] as String; } Map _$GhCreateIssueStarrableToJson( GhCreateIssueStarrable instance) => { '__typename': instance.resolveType, }; GhCreateIssueUniformResourceLocatable _$GhCreateIssueUniformResourceLocatableFromJson(Map json) { return GhCreateIssueUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhCreateIssueUniformResourceLocatableToJson( GhCreateIssueUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhCreateIssueRepositoryInfo _$GhCreateIssueRepositoryInfoFromJson( Map json) { return GhCreateIssueRepositoryInfo( owner: json['owner'] == null ? null : GhCreateIssueRepositoryOwner.fromJson( json['owner'] as Map), name: json['name'] as String, )..resolveType = json['__typename'] as String; } Map _$GhCreateIssueRepositoryInfoToJson( GhCreateIssueRepositoryInfo instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, '__typename': instance.resolveType, }; GhCreateIssueProjectCardItem _$GhCreateIssueProjectCardItemFromJson( Map json) { return GhCreateIssueProjectCardItem(); } Map _$GhCreateIssueProjectCardItemToJson( GhCreateIssueProjectCardItem instance) => {}; GhCreateIssueAssignable _$GhCreateIssueAssignableFromJson( Map json) { return GhCreateIssueAssignable()..resolveType = json['__typename'] as String; } Map _$GhCreateIssueAssignableToJson( GhCreateIssueAssignable instance) => { '__typename': instance.resolveType, }; GhCreateIssueClosable _$GhCreateIssueClosableFromJson( Map json) { return GhCreateIssueClosable()..resolveType = json['__typename'] as String; } Map _$GhCreateIssueClosableToJson( GhCreateIssueClosable instance) => { '__typename': instance.resolveType, }; GhCreateIssueComment _$GhCreateIssueCommentFromJson(Map json) { return GhCreateIssueComment()..resolveType = json['__typename'] as String; } Map _$GhCreateIssueCommentToJson( GhCreateIssueComment instance) => { '__typename': instance.resolveType, }; GhCreateIssueUpdatable _$GhCreateIssueUpdatableFromJson( Map json) { return GhCreateIssueUpdatable()..resolveType = json['__typename'] as String; } Map _$GhCreateIssueUpdatableToJson( GhCreateIssueUpdatable instance) => { '__typename': instance.resolveType, }; GhCreateIssueUpdatableComment _$GhCreateIssueUpdatableCommentFromJson( Map json) { return GhCreateIssueUpdatableComment() ..resolveType = json['__typename'] as String; } Map _$GhCreateIssueUpdatableCommentToJson( GhCreateIssueUpdatableComment instance) => { '__typename': instance.resolveType, }; GhCreateIssueLabelable _$GhCreateIssueLabelableFromJson( Map json) { return GhCreateIssueLabelable()..resolveType = json['__typename'] as String; } Map _$GhCreateIssueLabelableToJson( GhCreateIssueLabelable instance) => { '__typename': instance.resolveType, }; GhCreateIssueLockable _$GhCreateIssueLockableFromJson( Map json) { return GhCreateIssueLockable()..resolveType = json['__typename'] as String; } Map _$GhCreateIssueLockableToJson( GhCreateIssueLockable instance) => { '__typename': instance.resolveType, }; GhCreateIssueReactable _$GhCreateIssueReactableFromJson( Map json) { return GhCreateIssueReactable()..resolveType = json['__typename'] as String; } Map _$GhCreateIssueReactableToJson( GhCreateIssueReactable instance) => { '__typename': instance.resolveType, }; GhCreateIssueRepositoryNode _$GhCreateIssueRepositoryNodeFromJson( Map json) { return GhCreateIssueRepositoryNode( repository: json['repository'] == null ? null : GhCreateIssueRepository.fromJson( json['repository'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhCreateIssueRepositoryNodeToJson( GhCreateIssueRepositoryNode instance) => { 'repository': instance.repository?.toJson(), '__typename': instance.resolveType, }; GhCreateIssueArguments _$GhCreateIssueArgumentsFromJson( Map json) { return GhCreateIssueArguments( repoId: json['repoId'] as String, title: json['title'] as String, body: json['body'] as String, ); } Map _$GhCreateIssueArgumentsToJson( GhCreateIssueArguments instance) => { 'repoId': instance.repoId, 'title': instance.title, 'body': instance.body, }; GhOpenIssue _$GhOpenIssueFromJson(Map json) { return GhOpenIssue( reopenIssue: json['reopenIssue'] == null ? null : GhOpenIssueReopenIssuePayload.fromJson( json['reopenIssue'] as Map), closeIssue: json['closeIssue'] == null ? null : GhOpenIssueCloseIssuePayload.fromJson( json['closeIssue'] as Map), ); } Map _$GhOpenIssueToJson(GhOpenIssue instance) => { 'reopenIssue': instance.reopenIssue?.toJson(), 'closeIssue': instance.closeIssue?.toJson(), }; GhOpenIssueReopenIssuePayload _$GhOpenIssueReopenIssuePayloadFromJson( Map json) { return GhOpenIssueReopenIssuePayload( issue: json['issue'] == null ? null : GhOpenIssueIssue.fromJson(json['issue'] as Map), ); } Map _$GhOpenIssueReopenIssuePayloadToJson( GhOpenIssueReopenIssuePayload instance) => { 'issue': instance.issue?.toJson(), }; GhOpenIssueIssue _$GhOpenIssueIssueFromJson(Map json) { return GhOpenIssueIssue() ..closed = json['closed'] as bool ..resolveType = json['__typename'] as String; } Map _$GhOpenIssueIssueToJson(GhOpenIssueIssue instance) => { 'closed': instance.closed, '__typename': instance.resolveType, }; GhOpenIssueProjectCardItem _$GhOpenIssueProjectCardItemFromJson( Map json) { return GhOpenIssueProjectCardItem(); } Map _$GhOpenIssueProjectCardItemToJson( GhOpenIssueProjectCardItem instance) => {}; GhOpenIssueNode _$GhOpenIssueNodeFromJson(Map json) { return GhOpenIssueNode()..resolveType = json['__typename'] as String; } Map _$GhOpenIssueNodeToJson(GhOpenIssueNode instance) => { '__typename': instance.resolveType, }; GhOpenIssueAssignable _$GhOpenIssueAssignableFromJson( Map json) { return GhOpenIssueAssignable()..resolveType = json['__typename'] as String; } Map _$GhOpenIssueAssignableToJson( GhOpenIssueAssignable instance) => { '__typename': instance.resolveType, }; GhOpenIssueClosable _$GhOpenIssueClosableFromJson(Map json) { return GhOpenIssueClosable( closed: json['closed'] as bool, )..resolveType = json['__typename'] as String; } Map _$GhOpenIssueClosableToJson( GhOpenIssueClosable instance) => { 'closed': instance.closed, '__typename': instance.resolveType, }; GhOpenIssueComment _$GhOpenIssueCommentFromJson(Map json) { return GhOpenIssueComment()..resolveType = json['__typename'] as String; } Map _$GhOpenIssueCommentToJson(GhOpenIssueComment instance) => { '__typename': instance.resolveType, }; GhOpenIssueUpdatable _$GhOpenIssueUpdatableFromJson(Map json) { return GhOpenIssueUpdatable()..resolveType = json['__typename'] as String; } Map _$GhOpenIssueUpdatableToJson( GhOpenIssueUpdatable instance) => { '__typename': instance.resolveType, }; GhOpenIssueUpdatableComment _$GhOpenIssueUpdatableCommentFromJson( Map json) { return GhOpenIssueUpdatableComment() ..resolveType = json['__typename'] as String; } Map _$GhOpenIssueUpdatableCommentToJson( GhOpenIssueUpdatableComment instance) => { '__typename': instance.resolveType, }; GhOpenIssueLabelable _$GhOpenIssueLabelableFromJson(Map json) { return GhOpenIssueLabelable()..resolveType = json['__typename'] as String; } Map _$GhOpenIssueLabelableToJson( GhOpenIssueLabelable instance) => { '__typename': instance.resolveType, }; GhOpenIssueLockable _$GhOpenIssueLockableFromJson(Map json) { return GhOpenIssueLockable()..resolveType = json['__typename'] as String; } Map _$GhOpenIssueLockableToJson( GhOpenIssueLockable instance) => { '__typename': instance.resolveType, }; GhOpenIssueReactable _$GhOpenIssueReactableFromJson(Map json) { return GhOpenIssueReactable()..resolveType = json['__typename'] as String; } Map _$GhOpenIssueReactableToJson( GhOpenIssueReactable instance) => { '__typename': instance.resolveType, }; GhOpenIssueRepositoryNode _$GhOpenIssueRepositoryNodeFromJson( Map json) { return GhOpenIssueRepositoryNode() ..resolveType = json['__typename'] as String; } Map _$GhOpenIssueRepositoryNodeToJson( GhOpenIssueRepositoryNode instance) => { '__typename': instance.resolveType, }; GhOpenIssueSubscribable _$GhOpenIssueSubscribableFromJson( Map json) { return GhOpenIssueSubscribable()..resolveType = json['__typename'] as String; } Map _$GhOpenIssueSubscribableToJson( GhOpenIssueSubscribable instance) => { '__typename': instance.resolveType, }; GhOpenIssueUniformResourceLocatable _$GhOpenIssueUniformResourceLocatableFromJson(Map json) { return GhOpenIssueUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhOpenIssueUniformResourceLocatableToJson( GhOpenIssueUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhOpenIssueCloseIssuePayload _$GhOpenIssueCloseIssuePayloadFromJson( Map json) { return GhOpenIssueCloseIssuePayload( issue: json['issue'] == null ? null : GhOpenIssueIssue.fromJson(json['issue'] as Map), ); } Map _$GhOpenIssueCloseIssuePayloadToJson( GhOpenIssueCloseIssuePayload instance) => { 'issue': instance.issue?.toJson(), }; GhOpenIssueArguments _$GhOpenIssueArgumentsFromJson(Map json) { return GhOpenIssueArguments( id: json['id'] as String, open: json['open'] as bool, ); } Map _$GhOpenIssueArgumentsToJson( GhOpenIssueArguments instance) => { 'id': instance.id, 'open': instance.open, }; GhRepos _$GhReposFromJson(Map json) { return GhRepos( repositoryOwner: json['repositoryOwner'] == null ? null : GhReposRepositoryOwner.fromJson( json['repositoryOwner'] as Map), ); } Map _$GhReposToJson(GhRepos instance) => { 'repositoryOwner': instance.repositoryOwner?.toJson(), }; GhReposRepositoryOwner _$GhReposRepositoryOwnerFromJson( Map json) { return GhReposRepositoryOwner( login: json['login'] as String, avatarUrl: json['avatarUrl'] as String, )..resolveType = json['__typename'] as String; } Map _$GhReposRepositoryOwnerToJson( GhReposRepositoryOwner instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, '__typename': instance.resolveType, }; GhReposUser _$GhReposUserFromJson(Map json) { return GhReposUser( repositories: json['repositories'] == null ? null : GhReposRepositoryConnection.fromJson( json['repositories'] as Map), starredRepositories: json['starredRepositories'] == null ? null : GhReposStarredRepositoryConnection.fromJson( json['starredRepositories'] as Map), ) ..resolveType = json['__typename'] as String ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String; } Map _$GhReposUserToJson(GhReposUser instance) => { 'repositories': instance.repositories?.toJson(), 'starredRepositories': instance.starredRepositories?.toJson(), '__typename': instance.resolveType, 'login': instance.login, 'avatarUrl': instance.avatarUrl, }; GhReposRepositoryConnection _$GhReposRepositoryConnectionFromJson( Map json) { return GhReposRepositoryConnection( totalCount: json['totalCount'] as int, pageInfo: json['pageInfo'] == null ? null : GhReposPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhReposRepository.fromJson(e as Map)) ?.toList(), ); } Map _$GhReposRepositoryConnectionToJson( GhReposRepositoryConnection instance) => { 'totalCount': instance.totalCount, 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhReposPageInfo _$GhReposPageInfoFromJson(Map json) { return GhReposPageInfo( hasNextPage: json['hasNextPage'] as bool, endCursor: json['endCursor'] as String, ); } Map _$GhReposPageInfoToJson(GhReposPageInfo instance) => { 'hasNextPage': instance.hasNextPage, 'endCursor': instance.endCursor, }; GhReposRepository _$GhReposRepositoryFromJson(Map json) { return GhReposRepository( forks: json['forks'] == null ? null : GhReposRepositoryConnection.fromJson( json['forks'] as Map), primaryLanguage: json['primaryLanguage'] == null ? null : GhReposLanguage.fromJson( json['primaryLanguage'] as Map), ) ..owner = json['owner'] == null ? null : GhReposRepositoryOwner.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 ..updatedAt = json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String) ..stargazers = json['stargazers'] == null ? null : GhReposStargazerConnection.fromJson( json['stargazers'] as Map) ..resolveType = json['__typename'] as String; } Map _$GhReposRepositoryToJson(GhReposRepository instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, 'description': instance.description, 'isPrivate': instance.isPrivate, 'isFork': instance.isFork, 'updatedAt': instance.updatedAt?.toIso8601String(), 'stargazers': instance.stargazers?.toJson(), 'forks': instance.forks?.toJson(), 'primaryLanguage': instance.primaryLanguage?.toJson(), '__typename': instance.resolveType, }; GhReposStargazerConnection _$GhReposStargazerConnectionFromJson( Map json) { return GhReposStargazerConnection( totalCount: json['totalCount'] as int, ); } Map _$GhReposStargazerConnectionToJson( GhReposStargazerConnection instance) => { 'totalCount': instance.totalCount, }; GhReposLanguage _$GhReposLanguageFromJson(Map json) { return GhReposLanguage( color: json['color'] as String, name: json['name'] as String, )..resolveType = json['__typename'] as String; } Map _$GhReposLanguageToJson(GhReposLanguage instance) => { 'color': instance.color, 'name': instance.name, '__typename': instance.resolveType, }; GhReposNode _$GhReposNodeFromJson(Map json) { return GhReposNode()..resolveType = json['__typename'] as String; } Map _$GhReposNodeToJson(GhReposNode instance) => { '__typename': instance.resolveType, }; GhReposPinnableItem _$GhReposPinnableItemFromJson(Map json) { return GhReposPinnableItem(); } Map _$GhReposPinnableItemToJson( GhReposPinnableItem instance) => {}; GhReposProjectOwner _$GhReposProjectOwnerFromJson(Map json) { return GhReposProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhReposProjectOwnerToJson( GhReposProjectOwner instance) => { '__typename': instance.resolveType, }; GhReposRegistryPackageOwner _$GhReposRegistryPackageOwnerFromJson( Map json) { return GhReposRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhReposRegistryPackageOwnerToJson( GhReposRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhReposRegistryPackageSearch _$GhReposRegistryPackageSearchFromJson( Map json) { return GhReposRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhReposRegistryPackageSearchToJson( GhReposRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhReposSubscribable _$GhReposSubscribableFromJson(Map json) { return GhReposSubscribable()..resolveType = json['__typename'] as String; } Map _$GhReposSubscribableToJson( GhReposSubscribable instance) => { '__typename': instance.resolveType, }; GhReposStarrable _$GhReposStarrableFromJson(Map json) { return GhReposStarrable( stargazers: json['stargazers'] == null ? null : GhReposStargazerConnection.fromJson( json['stargazers'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhReposStarrableToJson(GhReposStarrable instance) => { 'stargazers': instance.stargazers?.toJson(), '__typename': instance.resolveType, }; GhReposUniformResourceLocatable _$GhReposUniformResourceLocatableFromJson( Map json) { return GhReposUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhReposUniformResourceLocatableToJson( GhReposUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhReposRepositoryInfo _$GhReposRepositoryInfoFromJson( Map json) { return GhReposRepositoryInfo( owner: json['owner'] == null ? null : GhReposRepositoryOwner.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, updatedAt: json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String), )..resolveType = json['__typename'] as String; } Map _$GhReposRepositoryInfoToJson( GhReposRepositoryInfo instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, 'description': instance.description, 'isPrivate': instance.isPrivate, 'isFork': instance.isFork, 'updatedAt': instance.updatedAt?.toIso8601String(), '__typename': instance.resolveType, }; GhReposStarredRepositoryConnection _$GhReposStarredRepositoryConnectionFromJson( Map json) { return GhReposStarredRepositoryConnection( pageInfo: json['pageInfo'] == null ? null : GhReposPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhReposRepository.fromJson(e as Map)) ?.toList(), ); } Map _$GhReposStarredRepositoryConnectionToJson( GhReposStarredRepositoryConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhReposAuditEntryActor _$GhReposAuditEntryActorFromJson( Map json) { return GhReposAuditEntryActor(); } Map _$GhReposAuditEntryActorToJson( GhReposAuditEntryActor instance) => {}; GhReposActor _$GhReposActorFromJson(Map json) { return GhReposActor()..resolveType = json['__typename'] as String; } Map _$GhReposActorToJson(GhReposActor instance) => { '__typename': instance.resolveType, }; GhReposProfileOwner _$GhReposProfileOwnerFromJson(Map json) { return GhReposProfileOwner()..resolveType = json['__typename'] as String; } Map _$GhReposProfileOwnerToJson( GhReposProfileOwner instance) => { '__typename': instance.resolveType, }; GhReposSponsorable _$GhReposSponsorableFromJson(Map json) { return GhReposSponsorable()..resolveType = json['__typename'] as String; } Map _$GhReposSponsorableToJson(GhReposSponsorable instance) => { '__typename': instance.resolveType, }; GhReposOrganization _$GhReposOrganizationFromJson(Map json) { return GhReposOrganization( pinnableItems: json['pinnableItems'] == null ? null : GhReposPinnableItemConnection.fromJson( json['pinnableItems'] as Map), ) ..resolveType = json['__typename'] as String ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String; } Map _$GhReposOrganizationToJson( GhReposOrganization instance) => { 'pinnableItems': instance.pinnableItems?.toJson(), '__typename': instance.resolveType, 'login': instance.login, 'avatarUrl': instance.avatarUrl, }; GhReposPinnableItemConnection _$GhReposPinnableItemConnectionFromJson( Map json) { return GhReposPinnableItemConnection( pageInfo: json['pageInfo'] == null ? null : GhReposPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhReposPinnableItem.fromJson(e as Map)) ?.toList(), ); } Map _$GhReposPinnableItemConnectionToJson( GhReposPinnableItemConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhReposMemberStatusable _$GhReposMemberStatusableFromJson( Map json) { return GhReposMemberStatusable()..resolveType = json['__typename'] as String; } Map _$GhReposMemberStatusableToJson( GhReposMemberStatusable instance) => { '__typename': instance.resolveType, }; GhReposArguments _$GhReposArgumentsFromJson(Map json) { return GhReposArguments( owner: json['owner'] as String, after: json['after'] as String, isStar: json['isStar'] as bool, ); } Map _$GhReposArgumentsToJson(GhReposArguments instance) => { 'owner': instance.owner, 'after': instance.after, 'isStar': instance.isStar, }; GhWatch _$GhWatchFromJson(Map json) { return GhWatch( updateSubscription: json['updateSubscription'] == null ? null : GhWatchUpdateSubscriptionPayload.fromJson( json['updateSubscription'] as Map), ); } Map _$GhWatchToJson(GhWatch instance) => { 'updateSubscription': instance.updateSubscription?.toJson(), }; GhWatchUpdateSubscriptionPayload _$GhWatchUpdateSubscriptionPayloadFromJson( Map json) { return GhWatchUpdateSubscriptionPayload( subscribable: json['subscribable'] == null ? null : GhWatchSubscribable.fromJson( json['subscribable'] as Map), ); } Map _$GhWatchUpdateSubscriptionPayloadToJson( GhWatchUpdateSubscriptionPayload instance) => { 'subscribable': instance.subscribable?.toJson(), }; GhWatchSubscribable _$GhWatchSubscribableFromJson(Map json) { return GhWatchSubscribable()..resolveType = json['__typename'] as String; } Map _$GhWatchSubscribableToJson( GhWatchSubscribable instance) => { '__typename': instance.resolveType, }; GhWatchRepository _$GhWatchRepositoryFromJson(Map json) { return GhWatchRepository( viewerSubscription: _$enumDecodeNullable( _$GhWatchSubscriptionStateEnumMap, json['viewerSubscription']), )..resolveType = json['__typename'] as String; } Map _$GhWatchRepositoryToJson(GhWatchRepository instance) => { 'viewerSubscription': _$GhWatchSubscriptionStateEnumMap[instance.viewerSubscription], '__typename': instance.resolveType, }; const _$GhWatchSubscriptionStateEnumMap = { GhWatchSubscriptionState.UNSUBSCRIBED: 'UNSUBSCRIBED', GhWatchSubscriptionState.SUBSCRIBED: 'SUBSCRIBED', GhWatchSubscriptionState.IGNORED: 'IGNORED', }; GhWatchPinnableItem _$GhWatchPinnableItemFromJson(Map json) { return GhWatchPinnableItem(); } Map _$GhWatchPinnableItemToJson( GhWatchPinnableItem instance) => {}; GhWatchNode _$GhWatchNodeFromJson(Map json) { return GhWatchNode()..resolveType = json['__typename'] as String; } Map _$GhWatchNodeToJson(GhWatchNode instance) => { '__typename': instance.resolveType, }; GhWatchProjectOwner _$GhWatchProjectOwnerFromJson(Map json) { return GhWatchProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhWatchProjectOwnerToJson( GhWatchProjectOwner instance) => { '__typename': instance.resolveType, }; GhWatchRegistryPackageOwner _$GhWatchRegistryPackageOwnerFromJson( Map json) { return GhWatchRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhWatchRegistryPackageOwnerToJson( GhWatchRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhWatchRegistryPackageSearch _$GhWatchRegistryPackageSearchFromJson( Map json) { return GhWatchRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhWatchRegistryPackageSearchToJson( GhWatchRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhWatchStarrable _$GhWatchStarrableFromJson(Map json) { return GhWatchStarrable()..resolveType = json['__typename'] as String; } Map _$GhWatchStarrableToJson(GhWatchStarrable instance) => { '__typename': instance.resolveType, }; GhWatchUniformResourceLocatable _$GhWatchUniformResourceLocatableFromJson( Map json) { return GhWatchUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhWatchUniformResourceLocatableToJson( GhWatchUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhWatchRepositoryInfo _$GhWatchRepositoryInfoFromJson( Map json) { return GhWatchRepositoryInfo()..resolveType = json['__typename'] as String; } Map _$GhWatchRepositoryInfoToJson( GhWatchRepositoryInfo instance) => { '__typename': instance.resolveType, }; GhWatchArguments _$GhWatchArgumentsFromJson(Map json) { return GhWatchArguments( id: json['id'] as String, state: _$enumDecodeNullable(_$GhWatchSubscriptionStateEnumMap, json['state']), ); } Map _$GhWatchArgumentsToJson(GhWatchArguments instance) => { 'id': instance.id, 'state': _$GhWatchSubscriptionStateEnumMap[instance.state], }; GhUser _$GhUserFromJson(Map json) { return GhUser( repositoryOwner: json['repositoryOwner'] == null ? null : GhUserRepositoryOwner.fromJson( json['repositoryOwner'] as Map), viewer: json['viewer'] == null ? null : GhUserUser.fromJson(json['viewer'] as Map), ); } Map _$GhUserToJson(GhUser instance) => { 'repositoryOwner': instance.repositoryOwner?.toJson(), 'viewer': instance.viewer?.toJson(), }; GhUserRepositoryOwner _$GhUserRepositoryOwnerFromJson( Map json) { return GhUserRepositoryOwner( id: json['id'] as String, login: json['login'] as String, avatarUrl: json['avatarUrl'] as String, url: json['url'] as String, )..resolveType = json['__typename'] as String; } Map _$GhUserRepositoryOwnerToJson( GhUserRepositoryOwner instance) => { 'id': instance.id, 'login': instance.login, 'avatarUrl': instance.avatarUrl, 'url': instance.url, '__typename': instance.resolveType, }; GhUserUser _$GhUserUserFromJson(Map json) { return GhUserUser( 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 : GhUserStarredRepositoryConnection.fromJson( json['starredRepositories'] as Map), followers: json['followers'] == null ? null : GhUserFollowerConnection.fromJson( json['followers'] as Map), following: json['following'] == null ? null : GhUserFollowingConnection.fromJson( json['following'] as Map), contributionsCollection: json['contributionsCollection'] == null ? null : GhUserContributionsCollection.fromJson( json['contributionsCollection'] as Map), repositories: json['repositories'] == null ? null : GhUserRepositoryConnection.fromJson( json['repositories'] as Map), pinnedItems: json['pinnedItems'] == null ? null : GhUserPinnableItemConnection.fromJson( json['pinnedItems'] as Map), viewerCanFollow: json['viewerCanFollow'] as bool, viewerIsFollowing: json['viewerIsFollowing'] as bool, ) ..resolveType = json['__typename'] as String ..id = json['id'] as String ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String ..url = json['url'] as String; } Map _$GhUserUserToJson(GhUserUser 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, 'id': instance.id, 'login': instance.login, 'avatarUrl': instance.avatarUrl, 'url': instance.url, }; GhUserStarredRepositoryConnection _$GhUserStarredRepositoryConnectionFromJson( Map json) { return GhUserStarredRepositoryConnection( totalCount: json['totalCount'] as int, ); } Map _$GhUserStarredRepositoryConnectionToJson( GhUserStarredRepositoryConnection instance) => { 'totalCount': instance.totalCount, }; GhUserFollowerConnection _$GhUserFollowerConnectionFromJson( Map json) { return GhUserFollowerConnection( totalCount: json['totalCount'] as int, ); } Map _$GhUserFollowerConnectionToJson( GhUserFollowerConnection instance) => { 'totalCount': instance.totalCount, }; GhUserFollowingConnection _$GhUserFollowingConnectionFromJson( Map json) { return GhUserFollowingConnection( totalCount: json['totalCount'] as int, ); } Map _$GhUserFollowingConnectionToJson( GhUserFollowingConnection instance) => { 'totalCount': instance.totalCount, }; GhUserContributionsCollection _$GhUserContributionsCollectionFromJson( Map json) { return GhUserContributionsCollection( contributionCalendar: json['contributionCalendar'] == null ? null : GhUserContributionCalendar.fromJson( json['contributionCalendar'] as Map), ); } Map _$GhUserContributionsCollectionToJson( GhUserContributionsCollection instance) => { 'contributionCalendar': instance.contributionCalendar?.toJson(), }; GhUserContributionCalendar _$GhUserContributionCalendarFromJson( Map json) { return GhUserContributionCalendar( weeks: (json['weeks'] as List) ?.map((e) => e == null ? null : GhUserContributionCalendarWeek.fromJson( e as Map)) ?.toList(), ); } Map _$GhUserContributionCalendarToJson( GhUserContributionCalendar instance) => { 'weeks': instance.weeks?.map((e) => e?.toJson())?.toList(), }; GhUserContributionCalendarWeek _$GhUserContributionCalendarWeekFromJson( Map json) { return GhUserContributionCalendarWeek( contributionDays: (json['contributionDays'] as List) ?.map((e) => e == null ? null : GhUserContributionCalendarDay.fromJson(e as Map)) ?.toList(), ); } Map _$GhUserContributionCalendarWeekToJson( GhUserContributionCalendarWeek instance) => { 'contributionDays': instance.contributionDays?.map((e) => e?.toJson())?.toList(), }; GhUserContributionCalendarDay _$GhUserContributionCalendarDayFromJson( Map json) { return GhUserContributionCalendarDay( color: json['color'] as String, ); } Map _$GhUserContributionCalendarDayToJson( GhUserContributionCalendarDay instance) => { 'color': instance.color, }; GhUserRepositoryConnection _$GhUserRepositoryConnectionFromJson( Map json) { return GhUserRepositoryConnection( totalCount: json['totalCount'] as int, nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUserRepository.fromJson(e as Map)) ?.toList(), ); } Map _$GhUserRepositoryConnectionToJson( GhUserRepositoryConnection instance) => { 'totalCount': instance.totalCount, 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhUserRepository _$GhUserRepositoryFromJson(Map json) { return GhUserRepository( forks: json['forks'] == null ? null : GhUserRepositoryConnection.fromJson( json['forks'] as Map), primaryLanguage: json['primaryLanguage'] == null ? null : GhUserLanguage.fromJson( json['primaryLanguage'] as Map), ) ..owner = json['owner'] == null ? null : GhUserRepositoryOwner.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 : GhUserStargazerConnection.fromJson( json['stargazers'] as Map) ..resolveType = json['__typename'] as String; } Map _$GhUserRepositoryToJson(GhUserRepository 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, }; GhUserStargazerConnection _$GhUserStargazerConnectionFromJson( Map json) { return GhUserStargazerConnection( totalCount: json['totalCount'] as int, ); } Map _$GhUserStargazerConnectionToJson( GhUserStargazerConnection instance) => { 'totalCount': instance.totalCount, }; GhUserLanguage _$GhUserLanguageFromJson(Map json) { return GhUserLanguage( color: json['color'] as String, name: json['name'] as String, )..resolveType = json['__typename'] as String; } Map _$GhUserLanguageToJson(GhUserLanguage instance) => { 'color': instance.color, 'name': instance.name, '__typename': instance.resolveType, }; GhUserNode _$GhUserNodeFromJson(Map json) { return GhUserNode()..resolveType = json['__typename'] as String; } Map _$GhUserNodeToJson(GhUserNode instance) => { '__typename': instance.resolveType, }; GhUserPinnableItem _$GhUserPinnableItemFromJson(Map json) { return GhUserPinnableItem(); } Map _$GhUserPinnableItemToJson(GhUserPinnableItem instance) => {}; GhUserProjectOwner _$GhUserProjectOwnerFromJson(Map json) { return GhUserProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhUserProjectOwnerToJson(GhUserProjectOwner instance) => { '__typename': instance.resolveType, }; GhUserRegistryPackageOwner _$GhUserRegistryPackageOwnerFromJson( Map json) { return GhUserRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhUserRegistryPackageOwnerToJson( GhUserRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhUserRegistryPackageSearch _$GhUserRegistryPackageSearchFromJson( Map json) { return GhUserRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhUserRegistryPackageSearchToJson( GhUserRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhUserSubscribable _$GhUserSubscribableFromJson(Map json) { return GhUserSubscribable()..resolveType = json['__typename'] as String; } Map _$GhUserSubscribableToJson(GhUserSubscribable instance) => { '__typename': instance.resolveType, }; GhUserStarrable _$GhUserStarrableFromJson(Map json) { return GhUserStarrable( stargazers: json['stargazers'] == null ? null : GhUserStargazerConnection.fromJson( json['stargazers'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhUserStarrableToJson(GhUserStarrable instance) => { 'stargazers': instance.stargazers?.toJson(), '__typename': instance.resolveType, }; GhUserUniformResourceLocatable _$GhUserUniformResourceLocatableFromJson( Map json) { return GhUserUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhUserUniformResourceLocatableToJson( GhUserUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhUserRepositoryInfo _$GhUserRepositoryInfoFromJson(Map json) { return GhUserRepositoryInfo( owner: json['owner'] == null ? null : GhUserRepositoryOwner.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 _$GhUserRepositoryInfoToJson( GhUserRepositoryInfo instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, 'description': instance.description, 'isPrivate': instance.isPrivate, 'isFork': instance.isFork, '__typename': instance.resolveType, }; GhUserPinnableItemConnection _$GhUserPinnableItemConnectionFromJson( Map json) { return GhUserPinnableItemConnection( totalCount: json['totalCount'] as int, nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUserPinnableItem.fromJson(e as Map)) ?.toList(), ); } Map _$GhUserPinnableItemConnectionToJson( GhUserPinnableItemConnection instance) => { 'totalCount': instance.totalCount, 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhUserAuditEntryActor _$GhUserAuditEntryActorFromJson( Map json) { return GhUserAuditEntryActor(); } Map _$GhUserAuditEntryActorToJson( GhUserAuditEntryActor instance) => {}; GhUserActor _$GhUserActorFromJson(Map json) { return GhUserActor()..resolveType = json['__typename'] as String; } Map _$GhUserActorToJson(GhUserActor instance) => { '__typename': instance.resolveType, }; GhUserProfileOwner _$GhUserProfileOwnerFromJson(Map json) { return GhUserProfileOwner( 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 : GhUserPinnableItemConnection.fromJson( json['pinnedItems'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhUserProfileOwnerToJson(GhUserProfileOwner instance) => { 'name': instance.name, 'location': instance.location, 'email': instance.email, 'websiteUrl': instance.websiteUrl, 'pinnedItems': instance.pinnedItems?.toJson(), '__typename': instance.resolveType, }; GhUserSponsorable _$GhUserSponsorableFromJson(Map json) { return GhUserSponsorable()..resolveType = json['__typename'] as String; } Map _$GhUserSponsorableToJson(GhUserSponsorable instance) => { '__typename': instance.resolveType, }; GhUserOrganization _$GhUserOrganizationFromJson(Map json) { return GhUserOrganization( 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 : GhUserPinnableItemConnection.fromJson( json['pinnedItems'] as Map), pinnableItems: json['pinnableItems'] == null ? null : GhUserPinnableItemConnection.fromJson( json['pinnableItems'] as Map), membersWithRole: json['membersWithRole'] == null ? null : GhUserOrganizationMemberConnection.fromJson( json['membersWithRole'] as Map), ) ..resolveType = json['__typename'] as String ..id = json['id'] as String ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String ..url = json['url'] as String; } Map _$GhUserOrganizationToJson(GhUserOrganization 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, 'id': instance.id, 'login': instance.login, 'avatarUrl': instance.avatarUrl, 'url': instance.url, }; GhUserOrganizationMemberConnection _$GhUserOrganizationMemberConnectionFromJson( Map json) { return GhUserOrganizationMemberConnection( totalCount: json['totalCount'] as int, ); } Map _$GhUserOrganizationMemberConnectionToJson( GhUserOrganizationMemberConnection instance) => { 'totalCount': instance.totalCount, }; GhUserMemberStatusable _$GhUserMemberStatusableFromJson( Map json) { return GhUserMemberStatusable()..resolveType = json['__typename'] as String; } Map _$GhUserMemberStatusableToJson( GhUserMemberStatusable instance) => { '__typename': instance.resolveType, }; GhUserArguments _$GhUserArgumentsFromJson(Map json) { return GhUserArguments( login: json['login'] as String, isViewer: json['isViewer'] as bool, ); } Map _$GhUserArgumentsToJson(GhUserArguments instance) => { 'login': instance.login, 'isViewer': instance.isViewer, }; GhFollow _$GhFollowFromJson(Map json) { return GhFollow( followUser: json['followUser'] == null ? null : GhFollowFollowUserPayload.fromJson( json['followUser'] as Map), unfollowUser: json['unfollowUser'] == null ? null : GhFollowUnfollowUserPayload.fromJson( json['unfollowUser'] as Map), ); } Map _$GhFollowToJson(GhFollow instance) => { 'followUser': instance.followUser?.toJson(), 'unfollowUser': instance.unfollowUser?.toJson(), }; GhFollowFollowUserPayload _$GhFollowFollowUserPayloadFromJson( Map json) { return GhFollowFollowUserPayload( user: json['user'] == null ? null : GhFollowUser.fromJson(json['user'] as Map), ); } Map _$GhFollowFollowUserPayloadToJson( GhFollowFollowUserPayload instance) => { 'user': instance.user?.toJson(), }; GhFollowUser _$GhFollowUserFromJson(Map json) { return GhFollowUser( viewerIsFollowing: json['viewerIsFollowing'] as bool, )..resolveType = json['__typename'] as String; } Map _$GhFollowUserToJson(GhFollowUser instance) => { 'viewerIsFollowing': instance.viewerIsFollowing, '__typename': instance.resolveType, }; GhFollowAuditEntryActor _$GhFollowAuditEntryActorFromJson( Map json) { return GhFollowAuditEntryActor(); } Map _$GhFollowAuditEntryActorToJson( GhFollowAuditEntryActor instance) => {}; GhFollowNode _$GhFollowNodeFromJson(Map json) { return GhFollowNode()..resolveType = json['__typename'] as String; } Map _$GhFollowNodeToJson(GhFollowNode instance) => { '__typename': instance.resolveType, }; GhFollowActor _$GhFollowActorFromJson(Map json) { return GhFollowActor()..resolveType = json['__typename'] as String; } Map _$GhFollowActorToJson(GhFollowActor instance) => { '__typename': instance.resolveType, }; GhFollowRegistryPackageOwner _$GhFollowRegistryPackageOwnerFromJson( Map json) { return GhFollowRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhFollowRegistryPackageOwnerToJson( GhFollowRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhFollowRegistryPackageSearch _$GhFollowRegistryPackageSearchFromJson( Map json) { return GhFollowRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhFollowRegistryPackageSearchToJson( GhFollowRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhFollowProjectOwner _$GhFollowProjectOwnerFromJson(Map json) { return GhFollowProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhFollowProjectOwnerToJson( GhFollowProjectOwner instance) => { '__typename': instance.resolveType, }; GhFollowRepositoryOwner _$GhFollowRepositoryOwnerFromJson( Map json) { return GhFollowRepositoryOwner()..resolveType = json['__typename'] as String; } Map _$GhFollowRepositoryOwnerToJson( GhFollowRepositoryOwner instance) => { '__typename': instance.resolveType, }; GhFollowUniformResourceLocatable _$GhFollowUniformResourceLocatableFromJson( Map json) { return GhFollowUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhFollowUniformResourceLocatableToJson( GhFollowUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhFollowProfileOwner _$GhFollowProfileOwnerFromJson(Map json) { return GhFollowProfileOwner()..resolveType = json['__typename'] as String; } Map _$GhFollowProfileOwnerToJson( GhFollowProfileOwner instance) => { '__typename': instance.resolveType, }; GhFollowSponsorable _$GhFollowSponsorableFromJson(Map json) { return GhFollowSponsorable()..resolveType = json['__typename'] as String; } Map _$GhFollowSponsorableToJson( GhFollowSponsorable instance) => { '__typename': instance.resolveType, }; GhFollowUnfollowUserPayload _$GhFollowUnfollowUserPayloadFromJson( Map json) { return GhFollowUnfollowUserPayload( user: json['user'] == null ? null : GhFollowUser.fromJson(json['user'] as Map), ); } Map _$GhFollowUnfollowUserPayloadToJson( GhFollowUnfollowUserPayload instance) => { 'user': instance.user?.toJson(), }; GhFollowArguments _$GhFollowArgumentsFromJson(Map json) { return GhFollowArguments( id: json['id'] as String, flag: json['flag'] as bool, ); } Map _$GhFollowArgumentsToJson(GhFollowArguments instance) => { 'id': instance.id, 'flag': instance.flag, }; GhStar _$GhStarFromJson(Map json) { return GhStar( addStar: json['addStar'] == null ? null : GhStarAddStarPayload.fromJson( json['addStar'] as Map), removeStar: json['removeStar'] == null ? null : GhStarRemoveStarPayload.fromJson( json['removeStar'] as Map), ); } Map _$GhStarToJson(GhStar instance) => { 'addStar': instance.addStar?.toJson(), 'removeStar': instance.removeStar?.toJson(), }; GhStarAddStarPayload _$GhStarAddStarPayloadFromJson(Map json) { return GhStarAddStarPayload( starrable: json['starrable'] == null ? null : GhStarStarrable.fromJson(json['starrable'] as Map), ); } Map _$GhStarAddStarPayloadToJson( GhStarAddStarPayload instance) => { 'starrable': instance.starrable?.toJson(), }; GhStarStarrable _$GhStarStarrableFromJson(Map json) { return GhStarStarrable( viewerHasStarred: json['viewerHasStarred'] as bool, )..resolveType = json['__typename'] as String; } Map _$GhStarStarrableToJson(GhStarStarrable instance) => { 'viewerHasStarred': instance.viewerHasStarred, '__typename': instance.resolveType, }; GhStarRemoveStarPayload _$GhStarRemoveStarPayloadFromJson( Map json) { return GhStarRemoveStarPayload( starrable: json['starrable'] == null ? null : GhStarStarrable.fromJson(json['starrable'] as Map), ); } Map _$GhStarRemoveStarPayloadToJson( GhStarRemoveStarPayload instance) => { 'starrable': instance.starrable?.toJson(), }; GhStarArguments _$GhStarArgumentsFromJson(Map json) { return GhStarArguments( id: json['id'] as String, flag: json['flag'] as bool, ); } Map _$GhStarArgumentsToJson(GhStarArguments instance) => { 'id': instance.id, 'flag': instance.flag, }; GhObject _$GhObjectFromJson(Map json) { return GhObject( repository: json['repository'] == null ? null : GhObjectRepository.fromJson( json['repository'] as Map), ); } Map _$GhObjectToJson(GhObject instance) => { 'repository': instance.repository?.toJson(), }; GhObjectRepository _$GhObjectRepositoryFromJson(Map json) { return GhObjectRepository( object: json['object'] == null ? null : GhObjectGitObject.fromJson(json['object'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhObjectRepositoryToJson(GhObjectRepository instance) => { 'object': instance.object?.toJson(), '__typename': instance.resolveType, }; GhObjectGitObject _$GhObjectGitObjectFromJson(Map json) { return GhObjectGitObject()..resolveType = json['__typename'] as String; } Map _$GhObjectGitObjectToJson(GhObjectGitObject instance) => { '__typename': instance.resolveType, }; GhObjectBlob _$GhObjectBlobFromJson(Map json) { return GhObjectBlob( text: json['text'] as String, byteSize: json['byteSize'] as int, )..resolveType = json['__typename'] as String; } Map _$GhObjectBlobToJson(GhObjectBlob instance) => { 'text': instance.text, 'byteSize': instance.byteSize, '__typename': instance.resolveType, }; GhObjectNode _$GhObjectNodeFromJson(Map json) { return GhObjectNode()..resolveType = json['__typename'] as String; } Map _$GhObjectNodeToJson(GhObjectNode instance) => { '__typename': instance.resolveType, }; GhObjectTree _$GhObjectTreeFromJson(Map json) { return GhObjectTree( entries: (json['entries'] as List) ?.map((e) => e == null ? null : GhObjectTreeEntry.fromJson(e as Map)) ?.toList(), )..resolveType = json['__typename'] as String; } Map _$GhObjectTreeToJson(GhObjectTree instance) => { 'entries': instance.entries?.map((e) => e?.toJson())?.toList(), '__typename': instance.resolveType, }; GhObjectTreeEntry _$GhObjectTreeEntryFromJson(Map json) { return GhObjectTreeEntry( type: json['type'] as String, name: json['name'] as String, object: json['object'] == null ? null : GhObjectGitObject.fromJson(json['object'] as Map), ); } Map _$GhObjectTreeEntryToJson(GhObjectTreeEntry instance) => { 'type': instance.type, 'name': instance.name, 'object': instance.object?.toJson(), }; GhObjectPinnableItem _$GhObjectPinnableItemFromJson(Map json) { return GhObjectPinnableItem(); } Map _$GhObjectPinnableItemToJson( GhObjectPinnableItem instance) => {}; GhObjectProjectOwner _$GhObjectProjectOwnerFromJson(Map json) { return GhObjectProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhObjectProjectOwnerToJson( GhObjectProjectOwner instance) => { '__typename': instance.resolveType, }; GhObjectRegistryPackageOwner _$GhObjectRegistryPackageOwnerFromJson( Map json) { return GhObjectRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhObjectRegistryPackageOwnerToJson( GhObjectRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhObjectRegistryPackageSearch _$GhObjectRegistryPackageSearchFromJson( Map json) { return GhObjectRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhObjectRegistryPackageSearchToJson( GhObjectRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhObjectSubscribable _$GhObjectSubscribableFromJson(Map json) { return GhObjectSubscribable()..resolveType = json['__typename'] as String; } Map _$GhObjectSubscribableToJson( GhObjectSubscribable instance) => { '__typename': instance.resolveType, }; GhObjectStarrable _$GhObjectStarrableFromJson(Map json) { return GhObjectStarrable()..resolveType = json['__typename'] as String; } Map _$GhObjectStarrableToJson(GhObjectStarrable instance) => { '__typename': instance.resolveType, }; GhObjectUniformResourceLocatable _$GhObjectUniformResourceLocatableFromJson( Map json) { return GhObjectUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhObjectUniformResourceLocatableToJson( GhObjectUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhObjectRepositoryInfo _$GhObjectRepositoryInfoFromJson( Map json) { return GhObjectRepositoryInfo()..resolveType = json['__typename'] as String; } Map _$GhObjectRepositoryInfoToJson( GhObjectRepositoryInfo instance) => { '__typename': instance.resolveType, }; GhObjectArguments _$GhObjectArgumentsFromJson(Map json) { return GhObjectArguments( owner: json['owner'] as String, name: json['name'] as String, expression: json['expression'] as String, ); } Map _$GhObjectArgumentsToJson(GhObjectArguments instance) => { 'owner': instance.owner, 'name': instance.name, 'expression': instance.expression, }; GhCommits _$GhCommitsFromJson(Map json) { return GhCommits( repository: json['repository'] == null ? null : GhCommitsRepository.fromJson( json['repository'] as Map), ); } Map _$GhCommitsToJson(GhCommits instance) => { 'repository': instance.repository?.toJson(), }; GhCommitsRepository _$GhCommitsRepositoryFromJson(Map json) { return GhCommitsRepository( defaultBranchRef: json['defaultBranchRef'] == null ? null : GhCommitsRef.fromJson( json['defaultBranchRef'] as Map), ref: json['ref'] == null ? null : GhCommitsRef.fromJson(json['ref'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhCommitsRepositoryToJson( GhCommitsRepository instance) => { 'defaultBranchRef': instance.defaultBranchRef?.toJson(), 'ref': instance.ref?.toJson(), '__typename': instance.resolveType, }; GhCommitsRef _$GhCommitsRefFromJson(Map json) { return GhCommitsRef() ..target = json['target'] == null ? null : GhCommitsGitObject.fromJson(json['target'] as Map) ..resolveType = json['__typename'] as String; } Map _$GhCommitsRefToJson(GhCommitsRef instance) => { 'target': instance.target?.toJson(), '__typename': instance.resolveType, }; GhCommitsGitObject _$GhCommitsGitObjectFromJson(Map json) { return GhCommitsGitObject()..resolveType = json['__typename'] as String; } Map _$GhCommitsGitObjectToJson(GhCommitsGitObject instance) => { '__typename': instance.resolveType, }; GhCommitsCommit _$GhCommitsCommitFromJson(Map json) { return GhCommitsCommit( oid: json['oid'] as String, url: json['url'] as String, messageHeadline: json['messageHeadline'] as String, committedDate: json['committedDate'] == null ? null : DateTime.parse(json['committedDate'] as String), author: json['author'] == null ? null : GhCommitsGitActor.fromJson(json['author'] as Map), status: json['status'] == null ? null : GhCommitsStatus.fromJson(json['status'] as Map), history: json['history'] == null ? null : GhCommitsCommitHistoryConnection.fromJson( json['history'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhCommitsCommitToJson(GhCommitsCommit instance) => { 'oid': instance.oid, 'url': instance.url, 'messageHeadline': instance.messageHeadline, 'committedDate': instance.committedDate?.toIso8601String(), 'author': instance.author?.toJson(), 'status': instance.status?.toJson(), 'history': instance.history?.toJson(), '__typename': instance.resolveType, }; GhCommitsGitActor _$GhCommitsGitActorFromJson(Map json) { return GhCommitsGitActor( name: json['name'] as String, avatarUrl: json['avatarUrl'] as String, user: json['user'] == null ? null : GhCommitsUser.fromJson(json['user'] as Map), ); } Map _$GhCommitsGitActorToJson(GhCommitsGitActor instance) => { 'name': instance.name, 'avatarUrl': instance.avatarUrl, 'user': instance.user?.toJson(), }; GhCommitsUser _$GhCommitsUserFromJson(Map json) { return GhCommitsUser() ..login = json['login'] as String ..resolveType = json['__typename'] as String; } Map _$GhCommitsUserToJson(GhCommitsUser instance) => { 'login': instance.login, '__typename': instance.resolveType, }; GhCommitsAuditEntryActor _$GhCommitsAuditEntryActorFromJson( Map json) { return GhCommitsAuditEntryActor(); } Map _$GhCommitsAuditEntryActorToJson( GhCommitsAuditEntryActor instance) => {}; GhCommitsNode _$GhCommitsNodeFromJson(Map json) { return GhCommitsNode()..resolveType = json['__typename'] as String; } Map _$GhCommitsNodeToJson(GhCommitsNode instance) => { '__typename': instance.resolveType, }; GhCommitsActor _$GhCommitsActorFromJson(Map json) { return GhCommitsActor( login: json['login'] as String, )..resolveType = json['__typename'] as String; } Map _$GhCommitsActorToJson(GhCommitsActor instance) => { 'login': instance.login, '__typename': instance.resolveType, }; GhCommitsRegistryPackageOwner _$GhCommitsRegistryPackageOwnerFromJson( Map json) { return GhCommitsRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhCommitsRegistryPackageOwnerToJson( GhCommitsRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhCommitsRegistryPackageSearch _$GhCommitsRegistryPackageSearchFromJson( Map json) { return GhCommitsRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhCommitsRegistryPackageSearchToJson( GhCommitsRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhCommitsProjectOwner _$GhCommitsProjectOwnerFromJson( Map json) { return GhCommitsProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhCommitsProjectOwnerToJson( GhCommitsProjectOwner instance) => { '__typename': instance.resolveType, }; GhCommitsRepositoryOwner _$GhCommitsRepositoryOwnerFromJson( Map json) { return GhCommitsRepositoryOwner( login: json['login'] as String, )..resolveType = json['__typename'] as String; } Map _$GhCommitsRepositoryOwnerToJson( GhCommitsRepositoryOwner instance) => { 'login': instance.login, '__typename': instance.resolveType, }; GhCommitsUniformResourceLocatable _$GhCommitsUniformResourceLocatableFromJson( Map json) { return GhCommitsUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhCommitsUniformResourceLocatableToJson( GhCommitsUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhCommitsProfileOwner _$GhCommitsProfileOwnerFromJson( Map json) { return GhCommitsProfileOwner( login: json['login'] as String, )..resolveType = json['__typename'] as String; } Map _$GhCommitsProfileOwnerToJson( GhCommitsProfileOwner instance) => { 'login': instance.login, '__typename': instance.resolveType, }; GhCommitsSponsorable _$GhCommitsSponsorableFromJson(Map json) { return GhCommitsSponsorable()..resolveType = json['__typename'] as String; } Map _$GhCommitsSponsorableToJson( GhCommitsSponsorable instance) => { '__typename': instance.resolveType, }; GhCommitsStatus _$GhCommitsStatusFromJson(Map json) { return GhCommitsStatus( state: _$enumDecodeNullable(_$GhCommitsStatusStateEnumMap, json['state']), )..resolveType = json['__typename'] as String; } Map _$GhCommitsStatusToJson(GhCommitsStatus instance) => { 'state': _$GhCommitsStatusStateEnumMap[instance.state], '__typename': instance.resolveType, }; const _$GhCommitsStatusStateEnumMap = { GhCommitsStatusState.EXPECTED: 'EXPECTED', GhCommitsStatusState.ERROR: 'ERROR', GhCommitsStatusState.FAILURE: 'FAILURE', GhCommitsStatusState.PENDING: 'PENDING', GhCommitsStatusState.SUCCESS: 'SUCCESS', }; GhCommitsCommitHistoryConnection _$GhCommitsCommitHistoryConnectionFromJson( Map json) { return GhCommitsCommitHistoryConnection( pageInfo: json['pageInfo'] == null ? null : GhCommitsPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhCommitsCommit.fromJson(e as Map)) ?.toList(), ); } Map _$GhCommitsCommitHistoryConnectionToJson( GhCommitsCommitHistoryConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhCommitsPageInfo _$GhCommitsPageInfoFromJson(Map json) { return GhCommitsPageInfo( hasNextPage: json['hasNextPage'] as bool, endCursor: json['endCursor'] as String, ); } Map _$GhCommitsPageInfoToJson(GhCommitsPageInfo instance) => { 'hasNextPage': instance.hasNextPage, 'endCursor': instance.endCursor, }; GhCommitsPullRequestTimelineItem _$GhCommitsPullRequestTimelineItemFromJson( Map json) { return GhCommitsPullRequestTimelineItem(); } Map _$GhCommitsPullRequestTimelineItemToJson( GhCommitsPullRequestTimelineItem instance) => {}; GhCommitsSubscribable _$GhCommitsSubscribableFromJson( Map json) { return GhCommitsSubscribable()..resolveType = json['__typename'] as String; } Map _$GhCommitsSubscribableToJson( GhCommitsSubscribable instance) => { '__typename': instance.resolveType, }; GhCommitsPinnableItem _$GhCommitsPinnableItemFromJson( Map json) { return GhCommitsPinnableItem(); } Map _$GhCommitsPinnableItemToJson( GhCommitsPinnableItem instance) => {}; GhCommitsStarrable _$GhCommitsStarrableFromJson(Map json) { return GhCommitsStarrable()..resolveType = json['__typename'] as String; } Map _$GhCommitsStarrableToJson(GhCommitsStarrable instance) => { '__typename': instance.resolveType, }; GhCommitsRepositoryInfo _$GhCommitsRepositoryInfoFromJson( Map json) { return GhCommitsRepositoryInfo()..resolveType = json['__typename'] as String; } Map _$GhCommitsRepositoryInfoToJson( GhCommitsRepositoryInfo instance) => { '__typename': instance.resolveType, }; GhCommitsArguments _$GhCommitsArgumentsFromJson(Map json) { return GhCommitsArguments( owner: json['owner'] as String, name: json['name'] as String, ref: json['ref'] as String, hasRef: json['hasRef'] as bool, after: json['after'] as String, ); } Map _$GhCommitsArgumentsToJson(GhCommitsArguments instance) => { 'owner': instance.owner, 'name': instance.name, 'ref': instance.ref, 'hasRef': instance.hasRef, 'after': instance.after, }; GhRepoId _$GhRepoIdFromJson(Map json) { return GhRepoId( repository: json['repository'] == null ? null : GhRepoIdRepository.fromJson( json['repository'] as Map), ); } Map _$GhRepoIdToJson(GhRepoId instance) => { 'repository': instance.repository?.toJson(), }; GhRepoIdRepository _$GhRepoIdRepositoryFromJson(Map json) { return GhRepoIdRepository() ..id = json['id'] as String ..resolveType = json['__typename'] as String; } Map _$GhRepoIdRepositoryToJson(GhRepoIdRepository instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GhRepoIdPinnableItem _$GhRepoIdPinnableItemFromJson(Map json) { return GhRepoIdPinnableItem(); } Map _$GhRepoIdPinnableItemToJson( GhRepoIdPinnableItem instance) => {}; GhRepoIdNode _$GhRepoIdNodeFromJson(Map json) { return GhRepoIdNode( id: json['id'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoIdNodeToJson(GhRepoIdNode instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GhRepoIdProjectOwner _$GhRepoIdProjectOwnerFromJson(Map json) { return GhRepoIdProjectOwner( id: json['id'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoIdProjectOwnerToJson( GhRepoIdProjectOwner instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GhRepoIdRegistryPackageOwner _$GhRepoIdRegistryPackageOwnerFromJson( Map json) { return GhRepoIdRegistryPackageOwner( id: json['id'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoIdRegistryPackageOwnerToJson( GhRepoIdRegistryPackageOwner instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GhRepoIdRegistryPackageSearch _$GhRepoIdRegistryPackageSearchFromJson( Map json) { return GhRepoIdRegistryPackageSearch( id: json['id'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoIdRegistryPackageSearchToJson( GhRepoIdRegistryPackageSearch instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GhRepoIdSubscribable _$GhRepoIdSubscribableFromJson(Map json) { return GhRepoIdSubscribable( id: json['id'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoIdSubscribableToJson( GhRepoIdSubscribable instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GhRepoIdStarrable _$GhRepoIdStarrableFromJson(Map json) { return GhRepoIdStarrable( id: json['id'] as String, )..resolveType = json['__typename'] as String; } Map _$GhRepoIdStarrableToJson(GhRepoIdStarrable instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GhRepoIdUniformResourceLocatable _$GhRepoIdUniformResourceLocatableFromJson( Map json) { return GhRepoIdUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhRepoIdUniformResourceLocatableToJson( GhRepoIdUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhRepoIdRepositoryInfo _$GhRepoIdRepositoryInfoFromJson( Map json) { return GhRepoIdRepositoryInfo()..resolveType = json['__typename'] as String; } Map _$GhRepoIdRepositoryInfoToJson( GhRepoIdRepositoryInfo instance) => { '__typename': instance.resolveType, }; GhRepoIdArguments _$GhRepoIdArgumentsFromJson(Map json) { return GhRepoIdArguments( owner: json['owner'] as String, name: json['name'] as String, ); } Map _$GhRepoIdArgumentsToJson(GhRepoIdArguments instance) => { 'owner': instance.owner, 'name': instance.name, }; GhIssues _$GhIssuesFromJson(Map json) { return GhIssues( repository: json['repository'] == null ? null : GhIssuesRepository.fromJson( json['repository'] as Map), ); } Map _$GhIssuesToJson(GhIssues instance) => { 'repository': instance.repository?.toJson(), }; GhIssuesRepository _$GhIssuesRepositoryFromJson(Map json) { return GhIssuesRepository( issues: json['issues'] == null ? null : GhIssuesIssueConnection.fromJson( json['issues'] as Map), ) ..owner = json['owner'] == null ? null : GhIssuesRepositoryOwner.fromJson( json['owner'] as Map) ..name = json['name'] as String ..resolveType = json['__typename'] as String; } Map _$GhIssuesRepositoryToJson(GhIssuesRepository instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, 'issues': instance.issues?.toJson(), '__typename': instance.resolveType, }; GhIssuesRepositoryOwner _$GhIssuesRepositoryOwnerFromJson( Map json) { return GhIssuesRepositoryOwner( login: json['login'] as String, )..resolveType = json['__typename'] as String; } Map _$GhIssuesRepositoryOwnerToJson( GhIssuesRepositoryOwner instance) => { 'login': instance.login, '__typename': instance.resolveType, }; GhIssuesIssueConnection _$GhIssuesIssueConnectionFromJson( Map json) { return GhIssuesIssueConnection( pageInfo: json['pageInfo'] == null ? null : GhIssuesPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhIssuesIssue.fromJson(e as Map)) ?.toList(), ); } Map _$GhIssuesIssueConnectionToJson( GhIssuesIssueConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhIssuesPageInfo _$GhIssuesPageInfoFromJson(Map json) { return GhIssuesPageInfo( hasNextPage: json['hasNextPage'] as bool, endCursor: json['endCursor'] as String, ); } Map _$GhIssuesPageInfoToJson(GhIssuesPageInfo instance) => { 'hasNextPage': instance.hasNextPage, 'endCursor': instance.endCursor, }; GhIssuesIssue _$GhIssuesIssueFromJson(Map json) { return GhIssuesIssue( number: json['number'] as int, title: json['title'] as String, comments: json['comments'] == null ? null : GhIssuesIssueCommentConnection.fromJson( json['comments'] as Map), ) ..repository = json['repository'] == null ? null : GhIssuesRepository.fromJson( json['repository'] as Map) ..updatedAt = json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String) ..author = json['author'] == null ? null : GhIssuesActor.fromJson(json['author'] as Map) ..labels = json['labels'] == null ? null : GhIssuesLabelConnection.fromJson( json['labels'] as Map) ..resolveType = json['__typename'] as String; } Map _$GhIssuesIssueToJson(GhIssuesIssue instance) => { 'repository': instance.repository?.toJson(), 'number': instance.number, 'title': instance.title, 'updatedAt': instance.updatedAt?.toIso8601String(), 'author': instance.author?.toJson(), 'labels': instance.labels?.toJson(), 'comments': instance.comments?.toJson(), '__typename': instance.resolveType, }; GhIssuesPinnableItem _$GhIssuesPinnableItemFromJson(Map json) { return GhIssuesPinnableItem(); } Map _$GhIssuesPinnableItemToJson( GhIssuesPinnableItem instance) => {}; GhIssuesNode _$GhIssuesNodeFromJson(Map json) { return GhIssuesNode()..resolveType = json['__typename'] as String; } Map _$GhIssuesNodeToJson(GhIssuesNode instance) => { '__typename': instance.resolveType, }; GhIssuesProjectOwner _$GhIssuesProjectOwnerFromJson(Map json) { return GhIssuesProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhIssuesProjectOwnerToJson( GhIssuesProjectOwner instance) => { '__typename': instance.resolveType, }; GhIssuesRegistryPackageOwner _$GhIssuesRegistryPackageOwnerFromJson( Map json) { return GhIssuesRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhIssuesRegistryPackageOwnerToJson( GhIssuesRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhIssuesRegistryPackageSearch _$GhIssuesRegistryPackageSearchFromJson( Map json) { return GhIssuesRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhIssuesRegistryPackageSearchToJson( GhIssuesRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhIssuesSubscribable _$GhIssuesSubscribableFromJson(Map json) { return GhIssuesSubscribable()..resolveType = json['__typename'] as String; } Map _$GhIssuesSubscribableToJson( GhIssuesSubscribable instance) => { '__typename': instance.resolveType, }; GhIssuesStarrable _$GhIssuesStarrableFromJson(Map json) { return GhIssuesStarrable()..resolveType = json['__typename'] as String; } Map _$GhIssuesStarrableToJson(GhIssuesStarrable instance) => { '__typename': instance.resolveType, }; GhIssuesUniformResourceLocatable _$GhIssuesUniformResourceLocatableFromJson( Map json) { return GhIssuesUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhIssuesUniformResourceLocatableToJson( GhIssuesUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhIssuesRepositoryInfo _$GhIssuesRepositoryInfoFromJson( Map json) { return GhIssuesRepositoryInfo( owner: json['owner'] == null ? null : GhIssuesRepositoryOwner.fromJson( json['owner'] as Map), name: json['name'] as String, )..resolveType = json['__typename'] as String; } Map _$GhIssuesRepositoryInfoToJson( GhIssuesRepositoryInfo instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, '__typename': instance.resolveType, }; GhIssuesActor _$GhIssuesActorFromJson(Map json) { return GhIssuesActor( login: json['login'] as String, avatarUrl: json['avatarUrl'] as String, )..resolveType = json['__typename'] as String; } Map _$GhIssuesActorToJson(GhIssuesActor instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, '__typename': instance.resolveType, }; GhIssuesLabelConnection _$GhIssuesLabelConnectionFromJson( Map json) { return GhIssuesLabelConnection( nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhIssuesLabel.fromJson(e as Map)) ?.toList(), ); } Map _$GhIssuesLabelConnectionToJson( GhIssuesLabelConnection instance) => { 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhIssuesLabel _$GhIssuesLabelFromJson(Map json) { return GhIssuesLabel( name: json['name'] as String, color: json['color'] as String, )..resolveType = json['__typename'] as String; } Map _$GhIssuesLabelToJson(GhIssuesLabel instance) => { 'name': instance.name, 'color': instance.color, '__typename': instance.resolveType, }; GhIssuesIssueCommentConnection _$GhIssuesIssueCommentConnectionFromJson( Map json) { return GhIssuesIssueCommentConnection( totalCount: json['totalCount'] as int, ); } Map _$GhIssuesIssueCommentConnectionToJson( GhIssuesIssueCommentConnection instance) => { 'totalCount': instance.totalCount, }; GhIssuesProjectCardItem _$GhIssuesProjectCardItemFromJson( Map json) { return GhIssuesProjectCardItem(); } Map _$GhIssuesProjectCardItemToJson( GhIssuesProjectCardItem instance) => {}; GhIssuesAssignable _$GhIssuesAssignableFromJson(Map json) { return GhIssuesAssignable()..resolveType = json['__typename'] as String; } Map _$GhIssuesAssignableToJson(GhIssuesAssignable instance) => { '__typename': instance.resolveType, }; GhIssuesClosable _$GhIssuesClosableFromJson(Map json) { return GhIssuesClosable()..resolveType = json['__typename'] as String; } Map _$GhIssuesClosableToJson(GhIssuesClosable instance) => { '__typename': instance.resolveType, }; GhIssuesComment _$GhIssuesCommentFromJson(Map json) { return GhIssuesComment( updatedAt: json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String), author: json['author'] == null ? null : GhIssuesActor.fromJson(json['author'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhIssuesCommentToJson(GhIssuesComment instance) => { 'updatedAt': instance.updatedAt?.toIso8601String(), 'author': instance.author?.toJson(), '__typename': instance.resolveType, }; GhIssuesUpdatable _$GhIssuesUpdatableFromJson(Map json) { return GhIssuesUpdatable()..resolveType = json['__typename'] as String; } Map _$GhIssuesUpdatableToJson(GhIssuesUpdatable instance) => { '__typename': instance.resolveType, }; GhIssuesUpdatableComment _$GhIssuesUpdatableCommentFromJson( Map json) { return GhIssuesUpdatableComment()..resolveType = json['__typename'] as String; } Map _$GhIssuesUpdatableCommentToJson( GhIssuesUpdatableComment instance) => { '__typename': instance.resolveType, }; GhIssuesLabelable _$GhIssuesLabelableFromJson(Map json) { return GhIssuesLabelable( labels: json['labels'] == null ? null : GhIssuesLabelConnection.fromJson( json['labels'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhIssuesLabelableToJson(GhIssuesLabelable instance) => { 'labels': instance.labels?.toJson(), '__typename': instance.resolveType, }; GhIssuesLockable _$GhIssuesLockableFromJson(Map json) { return GhIssuesLockable()..resolveType = json['__typename'] as String; } Map _$GhIssuesLockableToJson(GhIssuesLockable instance) => { '__typename': instance.resolveType, }; GhIssuesReactable _$GhIssuesReactableFromJson(Map json) { return GhIssuesReactable()..resolveType = json['__typename'] as String; } Map _$GhIssuesReactableToJson(GhIssuesReactable instance) => { '__typename': instance.resolveType, }; GhIssuesRepositoryNode _$GhIssuesRepositoryNodeFromJson( Map json) { return GhIssuesRepositoryNode( repository: json['repository'] == null ? null : GhIssuesRepository.fromJson( json['repository'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhIssuesRepositoryNodeToJson( GhIssuesRepositoryNode instance) => { 'repository': instance.repository?.toJson(), '__typename': instance.resolveType, }; GhIssuesArguments _$GhIssuesArgumentsFromJson(Map json) { return GhIssuesArguments( owner: json['owner'] as String, name: json['name'] as String, cursor: json['cursor'] as String, ); } Map _$GhIssuesArgumentsToJson(GhIssuesArguments instance) => { 'owner': instance.owner, 'name': instance.name, 'cursor': instance.cursor, }; GhPulls _$GhPullsFromJson(Map json) { return GhPulls( repository: json['repository'] == null ? null : GhPullsRepository.fromJson( json['repository'] as Map), ); } Map _$GhPullsToJson(GhPulls instance) => { 'repository': instance.repository?.toJson(), }; GhPullsRepository _$GhPullsRepositoryFromJson(Map json) { return GhPullsRepository( pullRequests: json['pullRequests'] == null ? null : GhPullsPullRequestConnection.fromJson( json['pullRequests'] as Map), ) ..owner = json['owner'] == null ? null : GhPullsRepositoryOwner.fromJson(json['owner'] as Map) ..name = json['name'] as String ..resolveType = json['__typename'] as String; } Map _$GhPullsRepositoryToJson(GhPullsRepository instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, 'pullRequests': instance.pullRequests?.toJson(), '__typename': instance.resolveType, }; GhPullsRepositoryOwner _$GhPullsRepositoryOwnerFromJson( Map json) { return GhPullsRepositoryOwner( login: json['login'] as String, )..resolveType = json['__typename'] as String; } Map _$GhPullsRepositoryOwnerToJson( GhPullsRepositoryOwner instance) => { 'login': instance.login, '__typename': instance.resolveType, }; GhPullsPullRequestConnection _$GhPullsPullRequestConnectionFromJson( Map json) { return GhPullsPullRequestConnection( pageInfo: json['pageInfo'] == null ? null : GhPullsPageInfo.fromJson(json['pageInfo'] as Map), nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhPullsPullRequest.fromJson(e as Map)) ?.toList(), ); } Map _$GhPullsPullRequestConnectionToJson( GhPullsPullRequestConnection instance) => { 'pageInfo': instance.pageInfo?.toJson(), 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhPullsPageInfo _$GhPullsPageInfoFromJson(Map json) { return GhPullsPageInfo( hasNextPage: json['hasNextPage'] as bool, endCursor: json['endCursor'] as String, ); } Map _$GhPullsPageInfoToJson(GhPullsPageInfo instance) => { 'hasNextPage': instance.hasNextPage, 'endCursor': instance.endCursor, }; GhPullsPullRequest _$GhPullsPullRequestFromJson(Map json) { return GhPullsPullRequest( number: json['number'] as int, title: json['title'] as String, comments: json['comments'] == null ? null : GhPullsIssueCommentConnection.fromJson( json['comments'] as Map), ) ..repository = json['repository'] == null ? null : GhPullsRepository.fromJson(json['repository'] as Map) ..updatedAt = json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String) ..author = json['author'] == null ? null : GhPullsActor.fromJson(json['author'] as Map) ..labels = json['labels'] == null ? null : GhPullsLabelConnection.fromJson( json['labels'] as Map) ..resolveType = json['__typename'] as String; } Map _$GhPullsPullRequestToJson(GhPullsPullRequest instance) => { 'repository': instance.repository?.toJson(), 'number': instance.number, 'title': instance.title, 'updatedAt': instance.updatedAt?.toIso8601String(), 'author': instance.author?.toJson(), 'labels': instance.labels?.toJson(), 'comments': instance.comments?.toJson(), '__typename': instance.resolveType, }; GhPullsPinnableItem _$GhPullsPinnableItemFromJson(Map json) { return GhPullsPinnableItem(); } Map _$GhPullsPinnableItemToJson( GhPullsPinnableItem instance) => {}; GhPullsNode _$GhPullsNodeFromJson(Map json) { return GhPullsNode()..resolveType = json['__typename'] as String; } Map _$GhPullsNodeToJson(GhPullsNode instance) => { '__typename': instance.resolveType, }; GhPullsProjectOwner _$GhPullsProjectOwnerFromJson(Map json) { return GhPullsProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhPullsProjectOwnerToJson( GhPullsProjectOwner instance) => { '__typename': instance.resolveType, }; GhPullsRegistryPackageOwner _$GhPullsRegistryPackageOwnerFromJson( Map json) { return GhPullsRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhPullsRegistryPackageOwnerToJson( GhPullsRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhPullsRegistryPackageSearch _$GhPullsRegistryPackageSearchFromJson( Map json) { return GhPullsRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhPullsRegistryPackageSearchToJson( GhPullsRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhPullsSubscribable _$GhPullsSubscribableFromJson(Map json) { return GhPullsSubscribable()..resolveType = json['__typename'] as String; } Map _$GhPullsSubscribableToJson( GhPullsSubscribable instance) => { '__typename': instance.resolveType, }; GhPullsStarrable _$GhPullsStarrableFromJson(Map json) { return GhPullsStarrable()..resolveType = json['__typename'] as String; } Map _$GhPullsStarrableToJson(GhPullsStarrable instance) => { '__typename': instance.resolveType, }; GhPullsUniformResourceLocatable _$GhPullsUniformResourceLocatableFromJson( Map json) { return GhPullsUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhPullsUniformResourceLocatableToJson( GhPullsUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhPullsRepositoryInfo _$GhPullsRepositoryInfoFromJson( Map json) { return GhPullsRepositoryInfo( owner: json['owner'] == null ? null : GhPullsRepositoryOwner.fromJson( json['owner'] as Map), name: json['name'] as String, )..resolveType = json['__typename'] as String; } Map _$GhPullsRepositoryInfoToJson( GhPullsRepositoryInfo instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, '__typename': instance.resolveType, }; GhPullsActor _$GhPullsActorFromJson(Map json) { return GhPullsActor( login: json['login'] as String, avatarUrl: json['avatarUrl'] as String, )..resolveType = json['__typename'] as String; } Map _$GhPullsActorToJson(GhPullsActor instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, '__typename': instance.resolveType, }; GhPullsLabelConnection _$GhPullsLabelConnectionFromJson( Map json) { return GhPullsLabelConnection( nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhPullsLabel.fromJson(e as Map)) ?.toList(), ); } Map _$GhPullsLabelConnectionToJson( GhPullsLabelConnection instance) => { 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GhPullsLabel _$GhPullsLabelFromJson(Map json) { return GhPullsLabel( name: json['name'] as String, color: json['color'] as String, )..resolveType = json['__typename'] as String; } Map _$GhPullsLabelToJson(GhPullsLabel instance) => { 'name': instance.name, 'color': instance.color, '__typename': instance.resolveType, }; GhPullsIssueCommentConnection _$GhPullsIssueCommentConnectionFromJson( Map json) { return GhPullsIssueCommentConnection( totalCount: json['totalCount'] as int, ); } Map _$GhPullsIssueCommentConnectionToJson( GhPullsIssueCommentConnection instance) => { 'totalCount': instance.totalCount, }; GhPullsProjectCardItem _$GhPullsProjectCardItemFromJson( Map json) { return GhPullsProjectCardItem(); } Map _$GhPullsProjectCardItemToJson( GhPullsProjectCardItem instance) => {}; GhPullsAssignable _$GhPullsAssignableFromJson(Map json) { return GhPullsAssignable()..resolveType = json['__typename'] as String; } Map _$GhPullsAssignableToJson(GhPullsAssignable instance) => { '__typename': instance.resolveType, }; GhPullsClosable _$GhPullsClosableFromJson(Map json) { return GhPullsClosable()..resolveType = json['__typename'] as String; } Map _$GhPullsClosableToJson(GhPullsClosable instance) => { '__typename': instance.resolveType, }; GhPullsComment _$GhPullsCommentFromJson(Map json) { return GhPullsComment( updatedAt: json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String), author: json['author'] == null ? null : GhPullsActor.fromJson(json['author'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhPullsCommentToJson(GhPullsComment instance) => { 'updatedAt': instance.updatedAt?.toIso8601String(), 'author': instance.author?.toJson(), '__typename': instance.resolveType, }; GhPullsUpdatable _$GhPullsUpdatableFromJson(Map json) { return GhPullsUpdatable()..resolveType = json['__typename'] as String; } Map _$GhPullsUpdatableToJson(GhPullsUpdatable instance) => { '__typename': instance.resolveType, }; GhPullsUpdatableComment _$GhPullsUpdatableCommentFromJson( Map json) { return GhPullsUpdatableComment()..resolveType = json['__typename'] as String; } Map _$GhPullsUpdatableCommentToJson( GhPullsUpdatableComment instance) => { '__typename': instance.resolveType, }; GhPullsLabelable _$GhPullsLabelableFromJson(Map json) { return GhPullsLabelable( labels: json['labels'] == null ? null : GhPullsLabelConnection.fromJson( json['labels'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhPullsLabelableToJson(GhPullsLabelable instance) => { 'labels': instance.labels?.toJson(), '__typename': instance.resolveType, }; GhPullsLockable _$GhPullsLockableFromJson(Map json) { return GhPullsLockable()..resolveType = json['__typename'] as String; } Map _$GhPullsLockableToJson(GhPullsLockable instance) => { '__typename': instance.resolveType, }; GhPullsReactable _$GhPullsReactableFromJson(Map json) { return GhPullsReactable()..resolveType = json['__typename'] as String; } Map _$GhPullsReactableToJson(GhPullsReactable instance) => { '__typename': instance.resolveType, }; GhPullsRepositoryNode _$GhPullsRepositoryNodeFromJson( Map json) { return GhPullsRepositoryNode( repository: json['repository'] == null ? null : GhPullsRepository.fromJson( json['repository'] as Map), )..resolveType = json['__typename'] as String; } Map _$GhPullsRepositoryNodeToJson( GhPullsRepositoryNode instance) => { 'repository': instance.repository?.toJson(), '__typename': instance.resolveType, }; GhPullsArguments _$GhPullsArgumentsFromJson(Map json) { return GhPullsArguments( owner: json['owner'] as String, name: json['name'] as String, cursor: json['cursor'] as String, ); } Map _$GhPullsArgumentsToJson(GhPullsArguments instance) => { 'owner': instance.owner, 'name': instance.name, 'cursor': instance.cursor, };