// 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() ..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) ..forks = json['forks'] == null ? null : GhRepoRepositoryConnection.fromJson( json['forks'] as Map) ..primaryLanguage = json['primaryLanguage'] == null ? null : GhRepoLanguage.fromJson( json['primaryLanguage'] as Map) ..id = json['id'] as String ..diskUsage = json['diskUsage'] as int ..hasIssuesEnabled = json['hasIssuesEnabled'] as bool ..url = json['url'] as String ..viewerHasStarred = json['viewerHasStarred'] as bool ..projectsUrl = json['projectsUrl'] as String ..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) ..projects = json['projects'] == null ? null : GhRepoProjectConnection.fromJson( json['projects'] 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) ..licenseInfo = json['licenseInfo'] == null ? null : GhRepoLicense.fromJson(json['licenseInfo'] as Map) ..repositoryTopics = json['repositoryTopics'] == null ? null : GhRepoRepositoryTopicConnection.fromJson(json['repositoryTopics'] 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, '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, }; 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() ..url = json['url'] as String ..topic = json['topic'] == null ? null : GhRepoTopic.fromJson(json['topic'] as Map) ..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() ..login = json['login'] as String ..name = json['name'] as String ..avatarUrl = json['avatarUrl'] as String ..company = json['company'] as String ..location = json['location'] 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) ..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() ..login = json['login'] as String ..name = json['name'] as String ..avatarUrl = json['avatarUrl'] as String ..location = json['location'] as String ..membersWithRole = json['membersWithRole'] == null ? null : GhUsersOrganizationMemberConnection.fromJson( json['membersWithRole'] as Map) ..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, }; 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() ..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 ..stargazers = json['stargazers'] == null ? null : GhReposStargazerConnection.fromJson( json['stargazers'] as Map) ..forks = json['forks'] == null ? null : GhReposRepositoryConnection.fromJson( json['forks'] as Map) ..primaryLanguage = json['primaryLanguage'] == null ? null : GhReposLanguage.fromJson( json['primaryLanguage'] 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, '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 ..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, '__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, }; 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() ..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) ..forks = json['forks'] == null ? null : GhUserRepositoryConnection.fromJson( json['forks'] as Map) ..primaryLanguage = json['primaryLanguage'] == null ? null : GhUserLanguage.fromJson( json['primaryLanguage'] 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, }; 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, }; 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; } Map _$GhObjectTreeEntryToJson(GhObjectTreeEntry instance) => { 'type': instance.type, 'name': instance.name, }; GhObjectNode _$GhObjectNodeFromJson(Map json) { return GhObjectNode()..resolveType = json['__typename'] as String; } Map _$GhObjectNodeToJson(GhObjectNode instance) => { '__typename': instance.resolveType, }; GhObjectBlob _$GhObjectBlobFromJson(Map json) { return GhObjectBlob() ..text = json['text'] as String ..resolveType = json['__typename'] as String; } Map _$GhObjectBlobToJson(GhObjectBlob instance) => { 'text': instance.text, '__typename': instance.resolveType, }; 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, }; 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 _$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, }; GhAddStar _$GhAddStarFromJson(Map json) { return GhAddStar() ..addStar = json['addStar'] == null ? null : GhAddStarAddStarPayload.fromJson( json['addStar'] as Map); } Map _$GhAddStarToJson(GhAddStar instance) => { 'addStar': instance.addStar?.toJson(), }; GhAddStarAddStarPayload _$GhAddStarAddStarPayloadFromJson( Map json) { return GhAddStarAddStarPayload() ..starrable = json['starrable'] == null ? null : GhAddStarStarrable.fromJson( json['starrable'] as Map); } Map _$GhAddStarAddStarPayloadToJson( GhAddStarAddStarPayload instance) => { 'starrable': instance.starrable?.toJson(), }; GhAddStarStarrable _$GhAddStarStarrableFromJson(Map json) { return GhAddStarStarrable() ..viewerHasStarred = json['viewerHasStarred'] as bool ..resolveType = json['__typename'] as String; } Map _$GhAddStarStarrableToJson(GhAddStarStarrable instance) => { 'viewerHasStarred': instance.viewerHasStarred, '__typename': instance.resolveType, }; GhAddStarArguments _$GhAddStarArgumentsFromJson(Map json) { return GhAddStarArguments( id: json['id'] as String, ); } Map _$GhAddStarArgumentsToJson(GhAddStarArguments instance) => { 'id': instance.id, }; GhRemoveStar _$GhRemoveStarFromJson(Map json) { return GhRemoveStar() ..removeStar = json['removeStar'] == null ? null : GhRemoveStarRemoveStarPayload.fromJson( json['removeStar'] as Map); } Map _$GhRemoveStarToJson(GhRemoveStar instance) => { 'removeStar': instance.removeStar?.toJson(), }; GhRemoveStarRemoveStarPayload _$GhRemoveStarRemoveStarPayloadFromJson( Map json) { return GhRemoveStarRemoveStarPayload() ..starrable = json['starrable'] == null ? null : GhRemoveStarStarrable.fromJson( json['starrable'] as Map); } Map _$GhRemoveStarRemoveStarPayloadToJson( GhRemoveStarRemoveStarPayload instance) => { 'starrable': instance.starrable?.toJson(), }; GhRemoveStarStarrable _$GhRemoveStarStarrableFromJson( Map json) { return GhRemoveStarStarrable() ..viewerHasStarred = json['viewerHasStarred'] as bool ..resolveType = json['__typename'] as String; } Map _$GhRemoveStarStarrableToJson( GhRemoveStarStarrable instance) => { 'viewerHasStarred': instance.viewerHasStarred, '__typename': instance.resolveType, }; GhRemoveStarArguments _$GhRemoveStarArgumentsFromJson( Map json) { return GhRemoveStarArguments( id: json['id'] as String, ); } Map _$GhRemoveStarArgumentsToJson( GhRemoveStarArguments instance) => { 'id': instance.id, }; GhFollowUser _$GhFollowUserFromJson(Map json) { return GhFollowUser() ..followUser = json['followUser'] == null ? null : GhFollowUserFollowUserPayload.fromJson( json['followUser'] as Map); } Map _$GhFollowUserToJson(GhFollowUser instance) => { 'followUser': instance.followUser?.toJson(), }; GhFollowUserFollowUserPayload _$GhFollowUserFollowUserPayloadFromJson( Map json) { return GhFollowUserFollowUserPayload() ..user = json['user'] == null ? null : GhFollowUserUser.fromJson(json['user'] as Map); } Map _$GhFollowUserFollowUserPayloadToJson( GhFollowUserFollowUserPayload instance) => { 'user': instance.user?.toJson(), }; GhFollowUserUser _$GhFollowUserUserFromJson(Map json) { return GhFollowUserUser() ..viewerIsFollowing = json['viewerIsFollowing'] as bool ..resolveType = json['__typename'] as String; } Map _$GhFollowUserUserToJson(GhFollowUserUser instance) => { 'viewerIsFollowing': instance.viewerIsFollowing, '__typename': instance.resolveType, }; GhFollowUserAuditEntryActor _$GhFollowUserAuditEntryActorFromJson( Map json) { return GhFollowUserAuditEntryActor(); } Map _$GhFollowUserAuditEntryActorToJson( GhFollowUserAuditEntryActor instance) => {}; GhFollowUserNode _$GhFollowUserNodeFromJson(Map json) { return GhFollowUserNode()..resolveType = json['__typename'] as String; } Map _$GhFollowUserNodeToJson(GhFollowUserNode instance) => { '__typename': instance.resolveType, }; GhFollowUserActor _$GhFollowUserActorFromJson(Map json) { return GhFollowUserActor()..resolveType = json['__typename'] as String; } Map _$GhFollowUserActorToJson(GhFollowUserActor instance) => { '__typename': instance.resolveType, }; GhFollowUserRegistryPackageOwner _$GhFollowUserRegistryPackageOwnerFromJson( Map json) { return GhFollowUserRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhFollowUserRegistryPackageOwnerToJson( GhFollowUserRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhFollowUserRegistryPackageSearch _$GhFollowUserRegistryPackageSearchFromJson( Map json) { return GhFollowUserRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhFollowUserRegistryPackageSearchToJson( GhFollowUserRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhFollowUserProjectOwner _$GhFollowUserProjectOwnerFromJson( Map json) { return GhFollowUserProjectOwner()..resolveType = json['__typename'] as String; } Map _$GhFollowUserProjectOwnerToJson( GhFollowUserProjectOwner instance) => { '__typename': instance.resolveType, }; GhFollowUserRepositoryOwner _$GhFollowUserRepositoryOwnerFromJson( Map json) { return GhFollowUserRepositoryOwner() ..resolveType = json['__typename'] as String; } Map _$GhFollowUserRepositoryOwnerToJson( GhFollowUserRepositoryOwner instance) => { '__typename': instance.resolveType, }; GhFollowUserUniformResourceLocatable _$GhFollowUserUniformResourceLocatableFromJson(Map json) { return GhFollowUserUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhFollowUserUniformResourceLocatableToJson( GhFollowUserUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhFollowUserProfileOwner _$GhFollowUserProfileOwnerFromJson( Map json) { return GhFollowUserProfileOwner()..resolveType = json['__typename'] as String; } Map _$GhFollowUserProfileOwnerToJson( GhFollowUserProfileOwner instance) => { '__typename': instance.resolveType, }; GhFollowUserSponsorable _$GhFollowUserSponsorableFromJson( Map json) { return GhFollowUserSponsorable()..resolveType = json['__typename'] as String; } Map _$GhFollowUserSponsorableToJson( GhFollowUserSponsorable instance) => { '__typename': instance.resolveType, }; GhFollowUserArguments _$GhFollowUserArgumentsFromJson( Map json) { return GhFollowUserArguments( id: json['id'] as String, ); } Map _$GhFollowUserArgumentsToJson( GhFollowUserArguments instance) => { 'id': instance.id, }; GhUnfollowUser _$GhUnfollowUserFromJson(Map json) { return GhUnfollowUser() ..unfollowUser = json['unfollowUser'] == null ? null : GhUnfollowUserUnfollowUserPayload.fromJson( json['unfollowUser'] as Map); } Map _$GhUnfollowUserToJson(GhUnfollowUser instance) => { 'unfollowUser': instance.unfollowUser?.toJson(), }; GhUnfollowUserUnfollowUserPayload _$GhUnfollowUserUnfollowUserPayloadFromJson( Map json) { return GhUnfollowUserUnfollowUserPayload() ..user = json['user'] == null ? null : GhUnfollowUserUser.fromJson(json['user'] as Map); } Map _$GhUnfollowUserUnfollowUserPayloadToJson( GhUnfollowUserUnfollowUserPayload instance) => { 'user': instance.user?.toJson(), }; GhUnfollowUserUser _$GhUnfollowUserUserFromJson(Map json) { return GhUnfollowUserUser() ..viewerIsFollowing = json['viewerIsFollowing'] as bool ..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserUserToJson(GhUnfollowUserUser instance) => { 'viewerIsFollowing': instance.viewerIsFollowing, '__typename': instance.resolveType, }; GhUnfollowUserAuditEntryActor _$GhUnfollowUserAuditEntryActorFromJson( Map json) { return GhUnfollowUserAuditEntryActor(); } Map _$GhUnfollowUserAuditEntryActorToJson( GhUnfollowUserAuditEntryActor instance) => {}; GhUnfollowUserNode _$GhUnfollowUserNodeFromJson(Map json) { return GhUnfollowUserNode()..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserNodeToJson(GhUnfollowUserNode instance) => { '__typename': instance.resolveType, }; GhUnfollowUserActor _$GhUnfollowUserActorFromJson(Map json) { return GhUnfollowUserActor()..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserActorToJson( GhUnfollowUserActor instance) => { '__typename': instance.resolveType, }; GhUnfollowUserRegistryPackageOwner _$GhUnfollowUserRegistryPackageOwnerFromJson( Map json) { return GhUnfollowUserRegistryPackageOwner() ..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserRegistryPackageOwnerToJson( GhUnfollowUserRegistryPackageOwner instance) => { '__typename': instance.resolveType, }; GhUnfollowUserRegistryPackageSearch _$GhUnfollowUserRegistryPackageSearchFromJson(Map json) { return GhUnfollowUserRegistryPackageSearch() ..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserRegistryPackageSearchToJson( GhUnfollowUserRegistryPackageSearch instance) => { '__typename': instance.resolveType, }; GhUnfollowUserProjectOwner _$GhUnfollowUserProjectOwnerFromJson( Map json) { return GhUnfollowUserProjectOwner() ..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserProjectOwnerToJson( GhUnfollowUserProjectOwner instance) => { '__typename': instance.resolveType, }; GhUnfollowUserRepositoryOwner _$GhUnfollowUserRepositoryOwnerFromJson( Map json) { return GhUnfollowUserRepositoryOwner() ..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserRepositoryOwnerToJson( GhUnfollowUserRepositoryOwner instance) => { '__typename': instance.resolveType, }; GhUnfollowUserUniformResourceLocatable _$GhUnfollowUserUniformResourceLocatableFromJson( Map json) { return GhUnfollowUserUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserUniformResourceLocatableToJson( GhUnfollowUserUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GhUnfollowUserProfileOwner _$GhUnfollowUserProfileOwnerFromJson( Map json) { return GhUnfollowUserProfileOwner() ..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserProfileOwnerToJson( GhUnfollowUserProfileOwner instance) => { '__typename': instance.resolveType, }; GhUnfollowUserSponsorable _$GhUnfollowUserSponsorableFromJson( Map json) { return GhUnfollowUserSponsorable() ..resolveType = json['__typename'] as String; } Map _$GhUnfollowUserSponsorableToJson( GhUnfollowUserSponsorable instance) => { '__typename': instance.resolveType, }; GhUnfollowUserArguments _$GhUnfollowUserArgumentsFromJson( Map json) { return GhUnfollowUserArguments( id: json['id'] as String, ); } Map _$GhUnfollowUserArgumentsToJson( GhUnfollowUserArguments instance) => { 'id': instance.id, };