// GENERATED CODE - DO NOT MODIFY BY HAND part of 'github_repository.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** GithubRepository _$GithubRepositoryFromJson(Map json) { return GithubRepository() ..repository = json['repository'] == null ? null : GithubRepositoryRepository.fromJson( json['repository'] as Map); } Map _$GithubRepositoryToJson(GithubRepository instance) => { 'repository': instance.repository?.toJson(), }; GithubRepositoryRepository _$GithubRepositoryRepositoryFromJson( Map json) { return GithubRepositoryRepository() ..owner = json['owner'] == null ? null : GithubRepositoryRepositoryOwner.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 : GithubRepositoryStargazerConnection.fromJson( json['stargazers'] as Map) ..forks = json['forks'] == null ? null : GithubRepositoryRepositoryConnection.fromJson( json['forks'] as Map) ..primaryLanguage = json['primaryLanguage'] == null ? null : GithubRepositoryLanguage.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 ..projectsResourcePath = json['projectsResourcePath'] as String ..watchers = json['watchers'] == null ? null : GithubRepositoryUserConnection.fromJson( json['watchers'] as Map) ..issues = json['issues'] == null ? null : GithubRepositoryIssueConnection.fromJson( json['issues'] as Map) ..pullRequests = json['pullRequests'] == null ? null : GithubRepositoryPullRequestConnection.fromJson( json['pullRequests'] as Map) ..projects = json['projects'] == null ? null : GithubRepositoryProjectConnection.fromJson(json['projects'] as Map) ..releases = json['releases'] == null ? null : GithubRepositoryReleaseConnection.fromJson(json['releases'] as Map) ..languages = json['languages'] == null ? null : GithubRepositoryLanguageConnection.fromJson(json['languages'] as Map) ..defaultBranchRef = json['defaultBranchRef'] == null ? null : GithubRepositoryRef.fromJson(json['defaultBranchRef'] as Map) ..ref = json['ref'] == null ? null : GithubRepositoryRef.fromJson(json['ref'] as Map) ..refs = json['refs'] == null ? null : GithubRepositoryRefConnection.fromJson(json['refs'] as Map) ..licenseInfo = json['licenseInfo'] == null ? null : GithubRepositoryLicense.fromJson(json['licenseInfo'] as Map) ..repositoryTopics = json['repositoryTopics'] == null ? null : GithubRepositoryRepositoryTopicConnection.fromJson(json['repositoryTopics'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryRepositoryToJson( GithubRepositoryRepository 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(), 'id': instance.id, 'diskUsage': instance.diskUsage, 'hasIssuesEnabled': instance.hasIssuesEnabled, 'url': instance.url, 'viewerHasStarred': instance.viewerHasStarred, 'projectsResourcePath': instance.projectsResourcePath, '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, }; GithubRepositoryRepositoryOwner _$GithubRepositoryRepositoryOwnerFromJson( Map json) { return GithubRepositoryRepositoryOwner() ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryRepositoryOwnerToJson( GithubRepositoryRepositoryOwner instance) => { 'login': instance.login, 'avatarUrl': instance.avatarUrl, '__typename': instance.resolveType, }; GithubRepositoryStargazerConnection _$GithubRepositoryStargazerConnectionFromJson(Map json) { return GithubRepositoryStargazerConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubRepositoryStargazerConnectionToJson( GithubRepositoryStargazerConnection instance) => { 'totalCount': instance.totalCount, }; GithubRepositoryRepositoryConnection _$GithubRepositoryRepositoryConnectionFromJson(Map json) { return GithubRepositoryRepositoryConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubRepositoryRepositoryConnectionToJson( GithubRepositoryRepositoryConnection instance) => { 'totalCount': instance.totalCount, }; GithubRepositoryLanguage _$GithubRepositoryLanguageFromJson( Map json) { return GithubRepositoryLanguage() ..color = json['color'] as String ..name = json['name'] as String ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryLanguageToJson( GithubRepositoryLanguage instance) => { 'color': instance.color, 'name': instance.name, '__typename': instance.resolveType, }; GithubRepositoryNode _$GithubRepositoryNodeFromJson(Map json) { return GithubRepositoryNode()..resolveType = json['__typename'] as String; } Map _$GithubRepositoryNodeToJson( GithubRepositoryNode instance) => { '__typename': instance.resolveType, }; GithubRepositoryUserConnection _$GithubRepositoryUserConnectionFromJson( Map json) { return GithubRepositoryUserConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubRepositoryUserConnectionToJson( GithubRepositoryUserConnection instance) => { 'totalCount': instance.totalCount, }; GithubRepositoryIssueConnection _$GithubRepositoryIssueConnectionFromJson( Map json) { return GithubRepositoryIssueConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubRepositoryIssueConnectionToJson( GithubRepositoryIssueConnection instance) => { 'totalCount': instance.totalCount, }; GithubRepositoryPullRequestConnection _$GithubRepositoryPullRequestConnectionFromJson(Map json) { return GithubRepositoryPullRequestConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubRepositoryPullRequestConnectionToJson( GithubRepositoryPullRequestConnection instance) => { 'totalCount': instance.totalCount, }; GithubRepositoryProjectConnection _$GithubRepositoryProjectConnectionFromJson( Map json) { return GithubRepositoryProjectConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubRepositoryProjectConnectionToJson( GithubRepositoryProjectConnection instance) => { 'totalCount': instance.totalCount, }; GithubRepositoryReleaseConnection _$GithubRepositoryReleaseConnectionFromJson( Map json) { return GithubRepositoryReleaseConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubRepositoryReleaseConnectionToJson( GithubRepositoryReleaseConnection instance) => { 'totalCount': instance.totalCount, }; GithubRepositoryLanguageConnection _$GithubRepositoryLanguageConnectionFromJson( Map json) { return GithubRepositoryLanguageConnection() ..totalSize = json['totalSize'] as int ..edges = (json['edges'] as List) ?.map((e) => e == null ? null : GithubRepositoryLanguageEdge.fromJson(e as Map)) ?.toList(); } Map _$GithubRepositoryLanguageConnectionToJson( GithubRepositoryLanguageConnection instance) => { 'totalSize': instance.totalSize, 'edges': instance.edges?.map((e) => e?.toJson())?.toList(), }; GithubRepositoryLanguageEdge _$GithubRepositoryLanguageEdgeFromJson( Map json) { return GithubRepositoryLanguageEdge() ..size = json['size'] as int ..node = json['node'] == null ? null : GithubRepositoryLanguage.fromJson( json['node'] as Map); } Map _$GithubRepositoryLanguageEdgeToJson( GithubRepositoryLanguageEdge instance) => { 'size': instance.size, 'node': instance.node?.toJson(), }; GithubRepositoryRef _$GithubRepositoryRefFromJson(Map json) { return GithubRepositoryRef() ..name = json['name'] as String ..target = json['target'] == null ? null : GithubRepositoryGitObject.fromJson( json['target'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryRefToJson( GithubRepositoryRef instance) => { 'name': instance.name, 'target': instance.target?.toJson(), '__typename': instance.resolveType, }; GithubRepositoryGitObject _$GithubRepositoryGitObjectFromJson( Map json) { return GithubRepositoryGitObject() ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryGitObjectToJson( GithubRepositoryGitObject instance) => { '__typename': instance.resolveType, }; GithubRepositoryCommit _$GithubRepositoryCommitFromJson( Map json) { return GithubRepositoryCommit() ..history = json['history'] == null ? null : GithubRepositoryCommitHistoryConnection.fromJson( json['history'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryCommitToJson( GithubRepositoryCommit instance) => { 'history': instance.history?.toJson(), '__typename': instance.resolveType, }; GithubRepositoryCommitHistoryConnection _$GithubRepositoryCommitHistoryConnectionFromJson( Map json) { return GithubRepositoryCommitHistoryConnection() ..totalCount = json['totalCount'] as int; } Map _$GithubRepositoryCommitHistoryConnectionToJson( GithubRepositoryCommitHistoryConnection instance) => { 'totalCount': instance.totalCount, }; GithubRepositoryPullRequestTimelineItem _$GithubRepositoryPullRequestTimelineItemFromJson( Map json) { return GithubRepositoryPullRequestTimelineItem(); } Map _$GithubRepositoryPullRequestTimelineItemToJson( GithubRepositoryPullRequestTimelineItem instance) => {}; GithubRepositorySubscribable _$GithubRepositorySubscribableFromJson( Map json) { return GithubRepositorySubscribable() ..resolveType = json['__typename'] as String; } Map _$GithubRepositorySubscribableToJson( GithubRepositorySubscribable instance) => { '__typename': instance.resolveType, }; GithubRepositoryUniformResourceLocatable _$GithubRepositoryUniformResourceLocatableFromJson( Map json) { return GithubRepositoryUniformResourceLocatable() ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryUniformResourceLocatableToJson( GithubRepositoryUniformResourceLocatable instance) => { '__typename': instance.resolveType, }; GithubRepositoryRefConnection _$GithubRepositoryRefConnectionFromJson( Map json) { return GithubRepositoryRefConnection() ..totalCount = json['totalCount'] as int ..nodes = (json['nodes'] as List) ?.map((e) => e == null ? null : GithubRepositoryRef.fromJson(e as Map)) ?.toList(); } Map _$GithubRepositoryRefConnectionToJson( GithubRepositoryRefConnection instance) => { 'totalCount': instance.totalCount, 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GithubRepositoryLicense _$GithubRepositoryLicenseFromJson( Map json) { return GithubRepositoryLicense() ..name = json['name'] as String ..spdxId = json['spdxId'] as String ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryLicenseToJson( GithubRepositoryLicense instance) => { 'name': instance.name, 'spdxId': instance.spdxId, '__typename': instance.resolveType, }; GithubRepositoryRepositoryTopicConnection _$GithubRepositoryRepositoryTopicConnectionFromJson( Map json) { return GithubRepositoryRepositoryTopicConnection() ..nodes = (json['nodes'] as List) ?.map((e) => e == null ? null : GithubRepositoryRepositoryTopic.fromJson( e as Map)) ?.toList(); } Map _$GithubRepositoryRepositoryTopicConnectionToJson( GithubRepositoryRepositoryTopicConnection instance) => { 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), }; GithubRepositoryRepositoryTopic _$GithubRepositoryRepositoryTopicFromJson( Map json) { return GithubRepositoryRepositoryTopic() ..url = json['url'] as String ..topic = json['topic'] == null ? null : GithubRepositoryTopic.fromJson(json['topic'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryRepositoryTopicToJson( GithubRepositoryRepositoryTopic instance) => { 'url': instance.url, 'topic': instance.topic?.toJson(), '__typename': instance.resolveType, }; GithubRepositoryTopic _$GithubRepositoryTopicFromJson( Map json) { return GithubRepositoryTopic() ..name = json['name'] as String ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryTopicToJson( GithubRepositoryTopic instance) => { 'name': instance.name, '__typename': instance.resolveType, }; GithubRepositoryStarrable _$GithubRepositoryStarrableFromJson( Map json) { return GithubRepositoryStarrable() ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryStarrableToJson( GithubRepositoryStarrable instance) => { '__typename': instance.resolveType, }; GithubRepositoryPinnableItem _$GithubRepositoryPinnableItemFromJson( Map json) { return GithubRepositoryPinnableItem(); } Map _$GithubRepositoryPinnableItemToJson( GithubRepositoryPinnableItem instance) => {}; GithubRepositoryProjectOwner _$GithubRepositoryProjectOwnerFromJson( Map json) { return GithubRepositoryProjectOwner() ..id = json['id'] as String ..projectsResourcePath = json['projectsResourcePath'] as String ..projects = json['projects'] == null ? null : GithubRepositoryProjectConnection.fromJson( json['projects'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryProjectOwnerToJson( GithubRepositoryProjectOwner instance) => { 'id': instance.id, 'projectsResourcePath': instance.projectsResourcePath, 'projects': instance.projects?.toJson(), '__typename': instance.resolveType, }; GithubRepositoryRegistryPackageOwner _$GithubRepositoryRegistryPackageOwnerFromJson(Map json) { return GithubRepositoryRegistryPackageOwner() ..id = json['id'] as String ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryRegistryPackageOwnerToJson( GithubRepositoryRegistryPackageOwner instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GithubRepositoryRegistryPackageSearch _$GithubRepositoryRegistryPackageSearchFromJson(Map json) { return GithubRepositoryRegistryPackageSearch() ..id = json['id'] as String ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryRegistryPackageSearchToJson( GithubRepositoryRegistryPackageSearch instance) => { 'id': instance.id, '__typename': instance.resolveType, }; GithubRepositoryRepositoryInfo _$GithubRepositoryRepositoryInfoFromJson( Map json) { return GithubRepositoryRepositoryInfo() ..owner = json['owner'] == null ? null : GithubRepositoryRepositoryOwner.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 ..hasIssuesEnabled = json['hasIssuesEnabled'] as bool ..url = json['url'] as String ..licenseInfo = json['licenseInfo'] == null ? null : GithubRepositoryLicense.fromJson( json['licenseInfo'] as Map) ..resolveType = json['__typename'] as String; } Map _$GithubRepositoryRepositoryInfoToJson( GithubRepositoryRepositoryInfo instance) => { 'owner': instance.owner?.toJson(), 'name': instance.name, 'description': instance.description, 'isPrivate': instance.isPrivate, 'isFork': instance.isFork, 'hasIssuesEnabled': instance.hasIssuesEnabled, 'url': instance.url, 'licenseInfo': instance.licenseInfo?.toJson(), '__typename': instance.resolveType, }; GithubRepositoryArguments _$GithubRepositoryArgumentsFromJson( Map json) { return GithubRepositoryArguments( owner: json['owner'] as String, name: json['name'] as String, branchSpecified: json['branchSpecified'] as bool, branch: json['branch'] as String, ); } Map _$GithubRepositoryArgumentsToJson( GithubRepositoryArguments instance) => { 'owner': instance.owner, 'name': instance.name, 'branchSpecified': instance.branchSpecified, 'branch': instance.branch, };