From c11d715c3d0df01987d62e98fb02df99d6a6c8cd Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Sun, 26 Jan 2020 19:39:15 +0800 Subject: [PATCH] build: upgrade artemis --- lib/graphql/gh.dart | 341 ++++++++----- lib/graphql/gh.g.dart | 1121 ++++++++++++++++++++++------------------- pubspec.yaml | 2 +- 3 files changed, 816 insertions(+), 648 deletions(-) diff --git a/lib/graphql/gh.dart b/lib/graphql/gh.dart index 5701b3e..c00596a 100644 --- a/lib/graphql/gh.dart +++ b/lib/graphql/gh.dart @@ -1,5 +1,6 @@ // GENERATED CODE - DO NOT MODIFY BY HAND +import 'package:meta/meta.dart'; import 'package:artemis/artemis.dart'; import 'package:json_annotation/json_annotation.dart'; import 'package:equatable/equatable.dart'; @@ -8,7 +9,7 @@ part 'gh.g.dart'; @JsonSerializable(explicitToJson: true) class GhRepo with EquatableMixin { - GhRepo(); + GhRepo({this.repository}); factory GhRepo.fromJson(Map json) => _$GhRepoFromJson(json); @@ -31,7 +32,19 @@ class GhRepoRepository extends GhRepoPinnableItem GhRepoStarrable, GhRepoUniformResourceLocatable, GhRepoRepositoryInfo { - GhRepoRepository(); + GhRepoRepository( + {this.forks, + this.primaryLanguage, + this.diskUsage, + this.watchers, + this.issues, + this.pullRequests, + this.releases, + this.languages, + this.defaultBranchRef, + this.ref, + this.refs, + this.repositoryTopics}); factory GhRepoRepository.fromJson(Map json) => _$GhRepoRepositoryFromJson(json); @@ -145,7 +158,7 @@ class GhRepoRepository extends GhRepoPinnableItem @JsonSerializable(explicitToJson: true) class GhRepoRepositoryOwner with EquatableMixin { - GhRepoRepositoryOwner(); + GhRepoRepositoryOwner({this.login, this.avatarUrl}); factory GhRepoRepositoryOwner.fromJson(Map json) => _$GhRepoRepositoryOwnerFromJson(json); @@ -164,7 +177,7 @@ class GhRepoRepositoryOwner with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoStargazerConnection with EquatableMixin { - GhRepoStargazerConnection(); + GhRepoStargazerConnection({this.totalCount}); factory GhRepoStargazerConnection.fromJson(Map json) => _$GhRepoStargazerConnectionFromJson(json); @@ -178,7 +191,7 @@ class GhRepoStargazerConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoRepositoryConnection with EquatableMixin { - GhRepoRepositoryConnection(); + GhRepoRepositoryConnection({this.totalCount}); factory GhRepoRepositoryConnection.fromJson(Map json) => _$GhRepoRepositoryConnectionFromJson(json); @@ -192,7 +205,7 @@ class GhRepoRepositoryConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoLanguage with EquatableMixin implements GhRepoNode { - GhRepoLanguage(); + GhRepoLanguage({this.color, this.name}); factory GhRepoLanguage.fromJson(Map json) => _$GhRepoLanguageFromJson(json); @@ -227,7 +240,7 @@ class GhRepoNode with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoUserConnection with EquatableMixin { - GhRepoUserConnection(); + GhRepoUserConnection({this.totalCount}); factory GhRepoUserConnection.fromJson(Map json) => _$GhRepoUserConnectionFromJson(json); @@ -241,7 +254,7 @@ class GhRepoUserConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoIssueConnection with EquatableMixin { - GhRepoIssueConnection(); + GhRepoIssueConnection({this.totalCount}); factory GhRepoIssueConnection.fromJson(Map json) => _$GhRepoIssueConnectionFromJson(json); @@ -255,7 +268,7 @@ class GhRepoIssueConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoPullRequestConnection with EquatableMixin { - GhRepoPullRequestConnection(); + GhRepoPullRequestConnection({this.totalCount}); factory GhRepoPullRequestConnection.fromJson(Map json) => _$GhRepoPullRequestConnectionFromJson(json); @@ -269,7 +282,7 @@ class GhRepoPullRequestConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoProjectConnection with EquatableMixin { - GhRepoProjectConnection(); + GhRepoProjectConnection({this.totalCount}); factory GhRepoProjectConnection.fromJson(Map json) => _$GhRepoProjectConnectionFromJson(json); @@ -283,7 +296,7 @@ class GhRepoProjectConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoReleaseConnection with EquatableMixin { - GhRepoReleaseConnection(); + GhRepoReleaseConnection({this.totalCount}); factory GhRepoReleaseConnection.fromJson(Map json) => _$GhRepoReleaseConnectionFromJson(json); @@ -297,7 +310,7 @@ class GhRepoReleaseConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoLanguageConnection with EquatableMixin { - GhRepoLanguageConnection(); + GhRepoLanguageConnection({this.totalSize, this.edges}); factory GhRepoLanguageConnection.fromJson(Map json) => _$GhRepoLanguageConnectionFromJson(json); @@ -313,7 +326,7 @@ class GhRepoLanguageConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoLanguageEdge with EquatableMixin { - GhRepoLanguageEdge(); + GhRepoLanguageEdge({this.size, this.node}); factory GhRepoLanguageEdge.fromJson(Map json) => _$GhRepoLanguageEdgeFromJson(json); @@ -329,7 +342,7 @@ class GhRepoLanguageEdge with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoRef with EquatableMixin implements GhRepoNode { - GhRepoRef(); + GhRepoRef({this.name, this.target}); factory GhRepoRef.fromJson(Map json) => _$GhRepoRefFromJson(json); @@ -383,7 +396,7 @@ class GhRepoCommit extends GhRepoPullRequestTimelineItem GhRepoGitObject, GhRepoSubscribable, GhRepoUniformResourceLocatable { - GhRepoCommit(); + GhRepoCommit({this.history}); factory GhRepoCommit.fromJson(Map json) => _$GhRepoCommitFromJson(json); @@ -401,7 +414,7 @@ class GhRepoCommit extends GhRepoPullRequestTimelineItem @JsonSerializable(explicitToJson: true) class GhRepoCommitHistoryConnection with EquatableMixin { - GhRepoCommitHistoryConnection(); + GhRepoCommitHistoryConnection({this.totalCount}); factory GhRepoCommitHistoryConnection.fromJson(Map json) => _$GhRepoCommitHistoryConnectionFromJson(json); @@ -457,7 +470,7 @@ class GhRepoUniformResourceLocatable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoRefConnection with EquatableMixin { - GhRepoRefConnection(); + GhRepoRefConnection({this.totalCount, this.nodes}); factory GhRepoRefConnection.fromJson(Map json) => _$GhRepoRefConnectionFromJson(json); @@ -473,7 +486,7 @@ class GhRepoRefConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoLicense with EquatableMixin implements GhRepoNode { - GhRepoLicense(); + GhRepoLicense({this.name, this.spdxId}); factory GhRepoLicense.fromJson(Map json) => _$GhRepoLicenseFromJson(json); @@ -493,7 +506,7 @@ class GhRepoLicense with EquatableMixin implements GhRepoNode { @JsonSerializable(explicitToJson: true) class GhRepoRepositoryTopicConnection with EquatableMixin { - GhRepoRepositoryTopicConnection(); + GhRepoRepositoryTopicConnection({this.nodes}); factory GhRepoRepositoryTopicConnection.fromJson(Map json) => _$GhRepoRepositoryTopicConnectionFromJson(json); @@ -510,7 +523,7 @@ class GhRepoRepositoryTopicConnection with EquatableMixin { class GhRepoRepositoryTopic with EquatableMixin implements GhRepoNode, GhRepoUniformResourceLocatable { - GhRepoRepositoryTopic(); + GhRepoRepositoryTopic({this.topic}); factory GhRepoRepositoryTopic.fromJson(Map json) => _$GhRepoRepositoryTopicFromJson(json); @@ -531,7 +544,7 @@ class GhRepoRepositoryTopic @JsonSerializable(explicitToJson: true) class GhRepoTopic with EquatableMixin implements GhRepoNode, GhRepoStarrable { - GhRepoTopic(); + GhRepoTopic({this.name}); factory GhRepoTopic.fromJson(Map json) => _$GhRepoTopicFromJson(json); @@ -576,7 +589,7 @@ class GhRepoPinnableItem with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoProjectOwner with EquatableMixin { - GhRepoProjectOwner(); + GhRepoProjectOwner({this.id, this.projectsUrl, this.projects}); factory GhRepoProjectOwner.fromJson(Map json) => _$GhRepoProjectOwnerFromJson(json); @@ -597,7 +610,7 @@ class GhRepoProjectOwner with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoRegistryPackageOwner with EquatableMixin { - GhRepoRegistryPackageOwner(); + GhRepoRegistryPackageOwner({this.id}); factory GhRepoRegistryPackageOwner.fromJson(Map json) => _$GhRepoRegistryPackageOwnerFromJson(json); @@ -614,7 +627,7 @@ class GhRepoRegistryPackageOwner with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoRegistryPackageSearch with EquatableMixin { - GhRepoRegistryPackageSearch(); + GhRepoRegistryPackageSearch({this.id}); factory GhRepoRegistryPackageSearch.fromJson(Map json) => _$GhRepoRegistryPackageSearchFromJson(json); @@ -631,7 +644,16 @@ class GhRepoRegistryPackageSearch with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoRepositoryInfo with EquatableMixin { - GhRepoRepositoryInfo(); + GhRepoRepositoryInfo( + {this.owner, + this.name, + this.description, + this.homepageUrl, + this.isPrivate, + this.isFork, + this.hasIssuesEnabled, + this.url, + this.licenseInfo}); factory GhRepoRepositoryInfo.fromJson(Map json) => _$GhRepoRepositoryInfoFromJson(json); @@ -681,7 +703,11 @@ enum GhRepoSubscriptionState { @JsonSerializable(explicitToJson: true) class GhRepoArguments extends JsonSerializable with EquatableMixin { - GhRepoArguments({this.owner, this.name, this.branchSpecified, this.branch}); + GhRepoArguments( + {@required this.owner, + @required this.name, + @required this.branchSpecified, + @required this.branch}); factory GhRepoArguments.fromJson(Map json) => _$GhRepoArgumentsFromJson(json); @@ -1248,7 +1274,7 @@ class GhRepoQuery extends GraphQLQuery { @JsonSerializable(explicitToJson: true) class GhUsers with EquatableMixin { - GhUsers(); + GhUsers({this.user, this.organization, this.repository}); factory GhUsers.fromJson(Map json) => _$GhUsersFromJson(json); @@ -1277,7 +1303,7 @@ class GhUsersUser extends GhUsersAuditEntryActor GhUsersUniformResourceLocatable, GhUsersProfileOwner, GhUsersSponsorable { - GhUsersUser(); + GhUsersUser({this.company, this.createdAt, this.followers, this.following}); factory GhUsersUser.fromJson(Map json) => _$GhUsersUserFromJson(json); @@ -1323,7 +1349,7 @@ class GhUsersUser extends GhUsersAuditEntryActor @JsonSerializable(explicitToJson: true) class GhUsersFollowerConnection with EquatableMixin { - GhUsersFollowerConnection(); + GhUsersFollowerConnection({this.pageInfo, this.nodes}); factory GhUsersFollowerConnection.fromJson(Map json) => _$GhUsersFollowerConnectionFromJson(json); @@ -1339,7 +1365,7 @@ class GhUsersFollowerConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUsersPageInfo with EquatableMixin { - GhUsersPageInfo(); + GhUsersPageInfo({this.hasNextPage, this.endCursor}); factory GhUsersPageInfo.fromJson(Map json) => _$GhUsersPageInfoFromJson(json); @@ -1382,7 +1408,7 @@ class GhUsersNode with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUsersActor with EquatableMixin { - GhUsersActor(); + GhUsersActor({this.login, this.avatarUrl}); factory GhUsersActor.fromJson(Map json) => _$GhUsersActorFromJson(json); @@ -1446,7 +1472,7 @@ class GhUsersProjectOwner with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUsersRepositoryOwner with EquatableMixin { - GhUsersRepositoryOwner(); + GhUsersRepositoryOwner({this.login, this.avatarUrl}); factory GhUsersRepositoryOwner.fromJson(Map json) => _$GhUsersRepositoryOwnerFromJson(json); @@ -1481,7 +1507,7 @@ class GhUsersUniformResourceLocatable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUsersProfileOwner with EquatableMixin { - GhUsersProfileOwner(); + GhUsersProfileOwner({this.login, this.name, this.location}); factory GhUsersProfileOwner.fromJson(Map json) => _$GhUsersProfileOwnerFromJson(json); @@ -1517,7 +1543,7 @@ class GhUsersSponsorable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUsersFollowingConnection with EquatableMixin { - GhUsersFollowingConnection(); + GhUsersFollowingConnection({this.pageInfo, this.nodes}); factory GhUsersFollowingConnection.fromJson(Map json) => _$GhUsersFollowingConnectionFromJson(json); @@ -1545,7 +1571,7 @@ class GhUsersOrganization extends GhUsersAuditEntryActor GhUsersMemberStatusable, GhUsersProfileOwner, GhUsersSponsorable { - GhUsersOrganization(); + GhUsersOrganization({this.membersWithRole}); factory GhUsersOrganization.fromJson(Map json) => _$GhUsersOrganizationFromJson(json); @@ -1576,7 +1602,7 @@ class GhUsersOrganization extends GhUsersAuditEntryActor @JsonSerializable(explicitToJson: true) class GhUsersOrganizationMemberConnection with EquatableMixin { - GhUsersOrganizationMemberConnection(); + GhUsersOrganizationMemberConnection({this.pageInfo, this.nodes}); factory GhUsersOrganizationMemberConnection.fromJson( Map json) => @@ -1619,7 +1645,7 @@ class GhUsersRepository extends GhUsersPinnableItem GhUsersStarrable, GhUsersUniformResourceLocatable, GhUsersRepositoryInfo { - GhUsersRepository(); + GhUsersRepository({this.watchers}); factory GhUsersRepository.fromJson(Map json) => _$GhUsersRepositoryFromJson(json); @@ -1640,7 +1666,7 @@ class GhUsersRepository extends GhUsersPinnableItem @JsonSerializable(explicitToJson: true) class GhUsersUserConnection with EquatableMixin { - GhUsersUserConnection(); + GhUsersUserConnection({this.pageInfo, this.nodes}); factory GhUsersUserConnection.fromJson(Map json) => _$GhUsersUserConnectionFromJson(json); @@ -1656,7 +1682,7 @@ class GhUsersUserConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUsersStargazerConnection with EquatableMixin { - GhUsersStargazerConnection(); + GhUsersStargazerConnection({this.pageInfo, this.nodes}); factory GhUsersStargazerConnection.fromJson(Map json) => _$GhUsersStargazerConnectionFromJson(json); @@ -1699,7 +1725,7 @@ class GhUsersSubscribable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUsersStarrable with EquatableMixin { - GhUsersStarrable(); + GhUsersStarrable({this.stargazers}); factory GhUsersStarrable.fromJson(Map json) => _$GhUsersStarrableFromJson(json); @@ -1732,14 +1758,14 @@ class GhUsersRepositoryInfo with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUsersArguments extends JsonSerializable with EquatableMixin { GhUsersArguments( - {this.login, - this.repoName, + {@required this.login, + @required this.repoName, this.after, - this.isFollowers, - this.isFollowing, - this.isMember, - this.isStar, - this.isWatch}); + @required this.isFollowers, + @required this.isFollowing, + @required this.isMember, + @required this.isStar, + @required this.isWatch}); factory GhUsersArguments.fromJson(Map json) => _$GhUsersArgumentsFromJson(json); @@ -2375,7 +2401,7 @@ class GhUsersQuery extends GraphQLQuery { @JsonSerializable(explicitToJson: true) class GhCreateIssue with EquatableMixin { - GhCreateIssue(); + GhCreateIssue({this.createIssue}); factory GhCreateIssue.fromJson(Map json) => _$GhCreateIssueFromJson(json); @@ -2389,7 +2415,7 @@ class GhCreateIssue with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhCreateIssueCreateIssuePayload with EquatableMixin { - GhCreateIssueCreateIssuePayload(); + GhCreateIssueCreateIssuePayload({this.issue}); factory GhCreateIssueCreateIssuePayload.fromJson(Map json) => _$GhCreateIssueCreateIssuePayloadFromJson(json); @@ -2418,7 +2444,7 @@ class GhCreateIssueIssue extends GhCreateIssueProjectCardItem GhCreateIssueRepositoryNode, GhCreateIssueSubscribable, GhCreateIssueUniformResourceLocatable { - GhCreateIssueIssue(); + GhCreateIssueIssue({this.number}); factory GhCreateIssueIssue.fromJson(Map json) => _$GhCreateIssueIssueFromJson(json); @@ -2471,7 +2497,7 @@ class GhCreateIssueRepository extends GhCreateIssuePinnableItem @JsonSerializable(explicitToJson: true) class GhCreateIssueRepositoryOwner with EquatableMixin { - GhCreateIssueRepositoryOwner(); + GhCreateIssueRepositoryOwner({this.login}); factory GhCreateIssueRepositoryOwner.fromJson(Map json) => _$GhCreateIssueRepositoryOwnerFromJson(json); @@ -2611,7 +2637,7 @@ class GhCreateIssueUniformResourceLocatable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhCreateIssueRepositoryInfo with EquatableMixin { - GhCreateIssueRepositoryInfo(); + GhCreateIssueRepositoryInfo({this.owner, this.name}); factory GhCreateIssueRepositoryInfo.fromJson(Map json) => _$GhCreateIssueRepositoryInfoFromJson(json); @@ -2762,7 +2788,7 @@ class GhCreateIssueReactable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhCreateIssueRepositoryNode with EquatableMixin { - GhCreateIssueRepositoryNode(); + GhCreateIssueRepositoryNode({this.repository}); factory GhCreateIssueRepositoryNode.fromJson(Map json) => _$GhCreateIssueRepositoryNodeFromJson(json); @@ -2779,7 +2805,8 @@ class GhCreateIssueRepositoryNode with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhCreateIssueArguments extends JsonSerializable with EquatableMixin { - GhCreateIssueArguments({this.repoId, this.title, this.body}); + GhCreateIssueArguments( + {@required this.repoId, @required this.title, @required this.body}); factory GhCreateIssueArguments.fromJson(Map json) => _$GhCreateIssueArgumentsFromJson(json); @@ -2903,7 +2930,7 @@ class GhCreateIssueQuery @JsonSerializable(explicitToJson: true) class GhOpenIssue with EquatableMixin { - GhOpenIssue(); + GhOpenIssue({this.reopenIssue, this.closeIssue}); factory GhOpenIssue.fromJson(Map json) => _$GhOpenIssueFromJson(json); @@ -2919,7 +2946,7 @@ class GhOpenIssue with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhOpenIssueReopenIssuePayload with EquatableMixin { - GhOpenIssueReopenIssuePayload(); + GhOpenIssueReopenIssuePayload({this.issue}); factory GhOpenIssueReopenIssuePayload.fromJson(Map json) => _$GhOpenIssueReopenIssuePayloadFromJson(json); @@ -3008,7 +3035,7 @@ class GhOpenIssueAssignable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhOpenIssueClosable with EquatableMixin { - GhOpenIssueClosable(); + GhOpenIssueClosable({this.closed}); factory GhOpenIssueClosable.fromJson(Map json) => _$GhOpenIssueClosableFromJson(json); @@ -3162,7 +3189,7 @@ class GhOpenIssueUniformResourceLocatable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhOpenIssueCloseIssuePayload with EquatableMixin { - GhOpenIssueCloseIssuePayload(); + GhOpenIssueCloseIssuePayload({this.issue}); factory GhOpenIssueCloseIssuePayload.fromJson(Map json) => _$GhOpenIssueCloseIssuePayloadFromJson(json); @@ -3176,7 +3203,7 @@ class GhOpenIssueCloseIssuePayload with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhOpenIssueArguments extends JsonSerializable with EquatableMixin { - GhOpenIssueArguments({this.id, this.open}); + GhOpenIssueArguments({@required this.id, @required this.open}); factory GhOpenIssueArguments.fromJson(Map json) => _$GhOpenIssueArgumentsFromJson(json); @@ -3298,7 +3325,7 @@ class GhOpenIssueQuery extends GraphQLQuery { @JsonSerializable(explicitToJson: true) class GhRepos with EquatableMixin { - GhRepos(); + GhRepos({this.repositoryOwner}); factory GhRepos.fromJson(Map json) => _$GhReposFromJson(json); @@ -3312,7 +3339,7 @@ class GhRepos with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhReposRepositoryOwner with EquatableMixin { - GhReposRepositoryOwner(); + GhReposRepositoryOwner({this.login, this.avatarUrl}); factory GhReposRepositoryOwner.fromJson(Map json) { switch (json['__typename'].toString()) { @@ -3359,7 +3386,7 @@ class GhReposUser extends GhReposAuditEntryActor GhReposUniformResourceLocatable, GhReposProfileOwner, GhReposSponsorable { - GhReposUser(); + GhReposUser({this.repositories, this.starredRepositories}); factory GhReposUser.fromJson(Map json) => _$GhReposUserFromJson(json); @@ -3386,7 +3413,7 @@ class GhReposUser extends GhReposAuditEntryActor @JsonSerializable(explicitToJson: true) class GhReposRepositoryConnection with EquatableMixin { - GhReposRepositoryConnection(); + GhReposRepositoryConnection({this.totalCount, this.pageInfo, this.nodes}); factory GhReposRepositoryConnection.fromJson(Map json) => _$GhReposRepositoryConnectionFromJson(json); @@ -3404,7 +3431,7 @@ class GhReposRepositoryConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhReposPageInfo with EquatableMixin { - GhReposPageInfo(); + GhReposPageInfo({this.hasNextPage, this.endCursor}); factory GhReposPageInfo.fromJson(Map json) => _$GhReposPageInfoFromJson(json); @@ -3430,7 +3457,7 @@ class GhReposRepository extends GhReposPinnableItem GhReposStarrable, GhReposUniformResourceLocatable, GhReposRepositoryInfo { - GhReposRepository(); + GhReposRepository({this.forks, this.primaryLanguage}); factory GhReposRepository.fromJson(Map json) => _$GhReposRepositoryFromJson(json); @@ -3482,7 +3509,7 @@ class GhReposRepository extends GhReposPinnableItem @JsonSerializable(explicitToJson: true) class GhReposStargazerConnection with EquatableMixin { - GhReposStargazerConnection(); + GhReposStargazerConnection({this.totalCount}); factory GhReposStargazerConnection.fromJson(Map json) => _$GhReposStargazerConnectionFromJson(json); @@ -3496,7 +3523,7 @@ class GhReposStargazerConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhReposLanguage with EquatableMixin implements GhReposNode { - GhReposLanguage(); + GhReposLanguage({this.color, this.name}); factory GhReposLanguage.fromJson(Map json) => _$GhReposLanguageFromJson(json); @@ -3603,7 +3630,7 @@ class GhReposSubscribable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhReposStarrable with EquatableMixin { - GhReposStarrable(); + GhReposStarrable({this.stargazers}); factory GhReposStarrable.fromJson(Map json) => _$GhReposStarrableFromJson(json); @@ -3636,7 +3663,13 @@ class GhReposUniformResourceLocatable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhReposRepositoryInfo with EquatableMixin { - GhReposRepositoryInfo(); + GhReposRepositoryInfo( + {this.owner, + this.name, + this.description, + this.isPrivate, + this.isFork, + this.updatedAt}); factory GhReposRepositoryInfo.fromJson(Map json) => _$GhReposRepositoryInfoFromJson(json); @@ -3664,7 +3697,7 @@ class GhReposRepositoryInfo with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhReposStarredRepositoryConnection with EquatableMixin { - GhReposStarredRepositoryConnection(); + GhReposStarredRepositoryConnection({this.pageInfo, this.nodes}); factory GhReposStarredRepositoryConnection.fromJson( Map json) => @@ -3751,7 +3784,7 @@ class GhReposOrganization extends GhReposAuditEntryActor GhReposMemberStatusable, GhReposProfileOwner, GhReposSponsorable { - GhReposOrganization(); + GhReposOrganization({this.pinnableItems}); factory GhReposOrganization.fromJson(Map json) => _$GhReposOrganizationFromJson(json); @@ -3775,7 +3808,7 @@ class GhReposOrganization extends GhReposAuditEntryActor @JsonSerializable(explicitToJson: true) class GhReposPinnableItemConnection with EquatableMixin { - GhReposPinnableItemConnection(); + GhReposPinnableItemConnection({this.pageInfo, this.nodes}); factory GhReposPinnableItemConnection.fromJson(Map json) => _$GhReposPinnableItemConnectionFromJson(json); @@ -3806,7 +3839,7 @@ class GhReposMemberStatusable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhReposArguments extends JsonSerializable with EquatableMixin { - GhReposArguments({this.owner, this.after, this.isStar}); + GhReposArguments({@required this.owner, this.after, @required this.isStar}); factory GhReposArguments.fromJson(Map json) => _$GhReposArgumentsFromJson(json); @@ -4416,7 +4449,7 @@ class GhReposQuery extends GraphQLQuery { @JsonSerializable(explicitToJson: true) class GhWatch with EquatableMixin { - GhWatch(); + GhWatch({this.updateSubscription}); factory GhWatch.fromJson(Map json) => _$GhWatchFromJson(json); @@ -4430,7 +4463,7 @@ class GhWatch with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhWatchUpdateSubscriptionPayload with EquatableMixin { - GhWatchUpdateSubscriptionPayload(); + GhWatchUpdateSubscriptionPayload({this.subscribable}); factory GhWatchUpdateSubscriptionPayload.fromJson( Map json) => @@ -4484,7 +4517,7 @@ class GhWatchRepository extends GhWatchPinnableItem GhWatchStarrable, GhWatchUniformResourceLocatable, GhWatchRepositoryInfo { - GhWatchRepository(); + GhWatchRepository({this.viewerSubscription}); factory GhWatchRepository.fromJson(Map json) => _$GhWatchRepositoryFromJson(json); @@ -4626,7 +4659,7 @@ enum GhWatchSubscriptionState { @JsonSerializable(explicitToJson: true) class GhWatchArguments extends JsonSerializable with EquatableMixin { - GhWatchArguments({this.id, this.state}); + GhWatchArguments({@required this.id, @required this.state}); factory GhWatchArguments.fromJson(Map json) => _$GhWatchArgumentsFromJson(json); @@ -4719,7 +4752,7 @@ class GhWatchQuery extends GraphQLQuery { @JsonSerializable(explicitToJson: true) class GhUser with EquatableMixin { - GhUser(); + GhUser({this.repositoryOwner, this.viewer}); factory GhUser.fromJson(Map json) => _$GhUserFromJson(json); @@ -4734,7 +4767,7 @@ class GhUser with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserRepositoryOwner with EquatableMixin { - GhUserRepositoryOwner(); + GhUserRepositoryOwner({this.id, this.login, this.avatarUrl, this.url}); factory GhUserRepositoryOwner.fromJson(Map json) { switch (json['__typename'].toString()) { @@ -4785,7 +4818,22 @@ class GhUserUser extends GhUserAuditEntryActor GhUserUniformResourceLocatable, GhUserProfileOwner, GhUserSponsorable { - GhUserUser(); + GhUserUser( + {this.name, + this.bio, + this.company, + this.location, + this.email, + this.createdAt, + this.websiteUrl, + this.starredRepositories, + this.followers, + this.following, + this.contributionsCollection, + this.repositories, + this.pinnedItems, + this.viewerCanFollow, + this.viewerIsFollowing}); factory GhUserUser.fromJson(Map json) => _$GhUserUserFromJson(json); @@ -4864,7 +4912,7 @@ class GhUserUser extends GhUserAuditEntryActor @JsonSerializable(explicitToJson: true) class GhUserStarredRepositoryConnection with EquatableMixin { - GhUserStarredRepositoryConnection(); + GhUserStarredRepositoryConnection({this.totalCount}); factory GhUserStarredRepositoryConnection.fromJson( Map json) => @@ -4880,7 +4928,7 @@ class GhUserStarredRepositoryConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserFollowerConnection with EquatableMixin { - GhUserFollowerConnection(); + GhUserFollowerConnection({this.totalCount}); factory GhUserFollowerConnection.fromJson(Map json) => _$GhUserFollowerConnectionFromJson(json); @@ -4894,7 +4942,7 @@ class GhUserFollowerConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserFollowingConnection with EquatableMixin { - GhUserFollowingConnection(); + GhUserFollowingConnection({this.totalCount}); factory GhUserFollowingConnection.fromJson(Map json) => _$GhUserFollowingConnectionFromJson(json); @@ -4908,7 +4956,7 @@ class GhUserFollowingConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserContributionsCollection with EquatableMixin { - GhUserContributionsCollection(); + GhUserContributionsCollection({this.contributionCalendar}); factory GhUserContributionsCollection.fromJson(Map json) => _$GhUserContributionsCollectionFromJson(json); @@ -4922,7 +4970,7 @@ class GhUserContributionsCollection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserContributionCalendar with EquatableMixin { - GhUserContributionCalendar(); + GhUserContributionCalendar({this.weeks}); factory GhUserContributionCalendar.fromJson(Map json) => _$GhUserContributionCalendarFromJson(json); @@ -4936,7 +4984,7 @@ class GhUserContributionCalendar with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserContributionCalendarWeek with EquatableMixin { - GhUserContributionCalendarWeek(); + GhUserContributionCalendarWeek({this.contributionDays}); factory GhUserContributionCalendarWeek.fromJson(Map json) => _$GhUserContributionCalendarWeekFromJson(json); @@ -4950,7 +4998,7 @@ class GhUserContributionCalendarWeek with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserContributionCalendarDay with EquatableMixin { - GhUserContributionCalendarDay(); + GhUserContributionCalendarDay({this.color}); factory GhUserContributionCalendarDay.fromJson(Map json) => _$GhUserContributionCalendarDayFromJson(json); @@ -4964,7 +5012,7 @@ class GhUserContributionCalendarDay with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserRepositoryConnection with EquatableMixin { - GhUserRepositoryConnection(); + GhUserRepositoryConnection({this.totalCount, this.nodes}); factory GhUserRepositoryConnection.fromJson(Map json) => _$GhUserRepositoryConnectionFromJson(json); @@ -4990,7 +5038,7 @@ class GhUserRepository extends GhUserPinnableItem GhUserStarrable, GhUserUniformResourceLocatable, GhUserRepositoryInfo { - GhUserRepository(); + GhUserRepository({this.forks, this.primaryLanguage}); factory GhUserRepository.fromJson(Map json) => _$GhUserRepositoryFromJson(json); @@ -5038,7 +5086,7 @@ class GhUserRepository extends GhUserPinnableItem @JsonSerializable(explicitToJson: true) class GhUserStargazerConnection with EquatableMixin { - GhUserStargazerConnection(); + GhUserStargazerConnection({this.totalCount}); factory GhUserStargazerConnection.fromJson(Map json) => _$GhUserStargazerConnectionFromJson(json); @@ -5052,7 +5100,7 @@ class GhUserStargazerConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserLanguage with EquatableMixin implements GhUserNode { - GhUserLanguage(); + GhUserLanguage({this.color, this.name}); factory GhUserLanguage.fromJson(Map json) => _$GhUserLanguageFromJson(json); @@ -5159,7 +5207,7 @@ class GhUserSubscribable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserStarrable with EquatableMixin { - GhUserStarrable(); + GhUserStarrable({this.stargazers}); factory GhUserStarrable.fromJson(Map json) => _$GhUserStarrableFromJson(json); @@ -5191,7 +5239,8 @@ class GhUserUniformResourceLocatable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserRepositoryInfo with EquatableMixin { - GhUserRepositoryInfo(); + GhUserRepositoryInfo( + {this.owner, this.name, this.description, this.isPrivate, this.isFork}); factory GhUserRepositoryInfo.fromJson(Map json) => _$GhUserRepositoryInfoFromJson(json); @@ -5217,7 +5266,7 @@ class GhUserRepositoryInfo with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserPinnableItemConnection with EquatableMixin { - GhUserPinnableItemConnection(); + GhUserPinnableItemConnection({this.totalCount, this.nodes}); factory GhUserPinnableItemConnection.fromJson(Map json) => _$GhUserPinnableItemConnectionFromJson(json); @@ -5260,7 +5309,12 @@ class GhUserActor with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserProfileOwner with EquatableMixin { - GhUserProfileOwner(); + GhUserProfileOwner( + {this.name, + this.location, + this.email, + this.websiteUrl, + this.pinnedItems}); factory GhUserProfileOwner.fromJson(Map json) => _$GhUserProfileOwnerFromJson(json); @@ -5313,7 +5367,16 @@ class GhUserOrganization extends GhUserAuditEntryActor GhUserMemberStatusable, GhUserProfileOwner, GhUserSponsorable { - GhUserOrganization(); + GhUserOrganization( + {this.name, + this.description, + this.location, + this.email, + this.websiteUrl, + this.createdAt, + this.pinnedItems, + this.pinnableItems, + this.membersWithRole}); factory GhUserOrganization.fromJson(Map json) => _$GhUserOrganizationFromJson(json); @@ -5374,7 +5437,7 @@ class GhUserOrganization extends GhUserAuditEntryActor @JsonSerializable(explicitToJson: true) class GhUserOrganizationMemberConnection with EquatableMixin { - GhUserOrganizationMemberConnection(); + GhUserOrganizationMemberConnection({this.totalCount}); factory GhUserOrganizationMemberConnection.fromJson( Map json) => @@ -5405,7 +5468,7 @@ class GhUserMemberStatusable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhUserArguments extends JsonSerializable with EquatableMixin { - GhUserArguments({this.login, this.isViewer}); + GhUserArguments({@required this.login, @required this.isViewer}); factory GhUserArguments.fromJson(Map json) => _$GhUserArgumentsFromJson(json); @@ -6411,7 +6474,7 @@ class GhUserQuery extends GraphQLQuery { @JsonSerializable(explicitToJson: true) class GhFollow with EquatableMixin { - GhFollow(); + GhFollow({this.followUser, this.unfollowUser}); factory GhFollow.fromJson(Map json) => _$GhFollowFromJson(json); @@ -6427,7 +6490,7 @@ class GhFollow with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhFollowFollowUserPayload with EquatableMixin { - GhFollowFollowUserPayload(); + GhFollowFollowUserPayload({this.user}); factory GhFollowFollowUserPayload.fromJson(Map json) => _$GhFollowFollowUserPayloadFromJson(json); @@ -6452,7 +6515,7 @@ class GhFollowUser extends GhFollowAuditEntryActor GhFollowUniformResourceLocatable, GhFollowProfileOwner, GhFollowSponsorable { - GhFollowUser(); + GhFollowUser({this.viewerIsFollowing}); factory GhFollowUser.fromJson(Map json) => _$GhFollowUserFromJson(json); @@ -6619,7 +6682,7 @@ class GhFollowSponsorable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhFollowUnfollowUserPayload with EquatableMixin { - GhFollowUnfollowUserPayload(); + GhFollowUnfollowUserPayload({this.user}); factory GhFollowUnfollowUserPayload.fromJson(Map json) => _$GhFollowUnfollowUserPayloadFromJson(json); @@ -6633,7 +6696,7 @@ class GhFollowUnfollowUserPayload with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhFollowArguments extends JsonSerializable with EquatableMixin { - GhFollowArguments({this.id, this.flag}); + GhFollowArguments({@required this.id, @required this.flag}); factory GhFollowArguments.fromJson(Map json) => _$GhFollowArgumentsFromJson(json); @@ -6755,7 +6818,7 @@ class GhFollowQuery extends GraphQLQuery { @JsonSerializable(explicitToJson: true) class GhStar with EquatableMixin { - GhStar(); + GhStar({this.addStar, this.removeStar}); factory GhStar.fromJson(Map json) => _$GhStarFromJson(json); @@ -6770,7 +6833,7 @@ class GhStar with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhStarAddStarPayload with EquatableMixin { - GhStarAddStarPayload(); + GhStarAddStarPayload({this.starrable}); factory GhStarAddStarPayload.fromJson(Map json) => _$GhStarAddStarPayloadFromJson(json); @@ -6784,7 +6847,7 @@ class GhStarAddStarPayload with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhStarStarrable with EquatableMixin { - GhStarStarrable(); + GhStarStarrable({this.viewerHasStarred}); factory GhStarStarrable.fromJson(Map json) => _$GhStarStarrableFromJson(json); @@ -6801,7 +6864,7 @@ class GhStarStarrable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhStarRemoveStarPayload with EquatableMixin { - GhStarRemoveStarPayload(); + GhStarRemoveStarPayload({this.starrable}); factory GhStarRemoveStarPayload.fromJson(Map json) => _$GhStarRemoveStarPayloadFromJson(json); @@ -6815,7 +6878,7 @@ class GhStarRemoveStarPayload with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhStarArguments extends JsonSerializable with EquatableMixin { - GhStarArguments({this.id, this.flag}); + GhStarArguments({@required this.id, @required this.flag}); factory GhStarArguments.fromJson(Map json) => _$GhStarArgumentsFromJson(json); @@ -6937,7 +7000,7 @@ class GhStarQuery extends GraphQLQuery { @JsonSerializable(explicitToJson: true) class GhObject with EquatableMixin { - GhObject(); + GhObject({this.repository}); factory GhObject.fromJson(Map json) => _$GhObjectFromJson(json); @@ -6961,7 +7024,7 @@ class GhObjectRepository extends GhObjectPinnableItem GhObjectStarrable, GhObjectUniformResourceLocatable, GhObjectRepositoryInfo { - GhObjectRepository(); + GhObjectRepository({this.object}); factory GhObjectRepository.fromJson(Map json) => _$GhObjectRepositoryFromJson(json); @@ -7013,7 +7076,7 @@ class GhObjectGitObject with EquatableMixin { class GhObjectTree with EquatableMixin implements GhObjectNode, GhObjectGitObject { - GhObjectTree(); + GhObjectTree({this.entries}); factory GhObjectTree.fromJson(Map json) => _$GhObjectTreeFromJson(json); @@ -7031,7 +7094,7 @@ class GhObjectTree @JsonSerializable(explicitToJson: true) class GhObjectTreeEntry with EquatableMixin { - GhObjectTreeEntry(); + GhObjectTreeEntry({this.type, this.name}); factory GhObjectTreeEntry.fromJson(Map json) => _$GhObjectTreeEntryFromJson(json); @@ -7064,7 +7127,7 @@ class GhObjectNode with EquatableMixin { class GhObjectBlob with EquatableMixin implements GhObjectNode, GhObjectGitObject { - GhObjectBlob(); + GhObjectBlob({this.text}); factory GhObjectBlob.fromJson(Map json) => _$GhObjectBlobFromJson(json); @@ -7201,7 +7264,8 @@ class GhObjectRepositoryInfo with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhObjectArguments extends JsonSerializable with EquatableMixin { - GhObjectArguments({this.owner, this.name, this.expression}); + GhObjectArguments( + {@required this.owner, @required this.name, @required this.expression}); factory GhObjectArguments.fromJson(Map json) => _$GhObjectArgumentsFromJson(json); @@ -7341,7 +7405,7 @@ mixin TMixin { @JsonSerializable(explicitToJson: true) class GhCommits with EquatableMixin { - GhCommits(); + GhCommits({this.repository}); factory GhCommits.fromJson(Map json) => _$GhCommitsFromJson(json); @@ -7365,7 +7429,7 @@ class GhCommitsRepository extends GhCommitsPinnableItem GhCommitsStarrable, GhCommitsUniformResourceLocatable, GhCommitsRepositoryInfo { - GhCommitsRepository(); + GhCommitsRepository({this.defaultBranchRef, this.ref}); factory GhCommitsRepository.fromJson(Map json) => _$GhCommitsRepositoryFromJson(json); @@ -7435,7 +7499,14 @@ class GhCommitsCommit extends GhCommitsPullRequestTimelineItem GhCommitsGitObject, GhCommitsSubscribable, GhCommitsUniformResourceLocatable { - GhCommitsCommit(); + GhCommitsCommit( + {this.oid, + this.url, + this.messageHeadline, + this.committedDate, + this.author, + this.status, + this.history}); factory GhCommitsCommit.fromJson(Map json) => _$GhCommitsCommitFromJson(json); @@ -7474,7 +7545,7 @@ class GhCommitsCommit extends GhCommitsPullRequestTimelineItem @JsonSerializable(explicitToJson: true) class GhCommitsGitActor with EquatableMixin { - GhCommitsGitActor(); + GhCommitsGitActor({this.name, this.avatarUrl, this.user}); factory GhCommitsGitActor.fromJson(Map json) => _$GhCommitsGitActorFromJson(json); @@ -7549,7 +7620,7 @@ class GhCommitsNode with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhCommitsActor with EquatableMixin { - GhCommitsActor(); + GhCommitsActor({this.login}); factory GhCommitsActor.fromJson(Map json) => _$GhCommitsActorFromJson(json); @@ -7611,7 +7682,7 @@ class GhCommitsProjectOwner with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhCommitsRepositoryOwner with EquatableMixin { - GhCommitsRepositoryOwner(); + GhCommitsRepositoryOwner({this.login}); factory GhCommitsRepositoryOwner.fromJson(Map json) => _$GhCommitsRepositoryOwnerFromJson(json); @@ -7645,7 +7716,7 @@ class GhCommitsUniformResourceLocatable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhCommitsProfileOwner with EquatableMixin { - GhCommitsProfileOwner(); + GhCommitsProfileOwner({this.login}); factory GhCommitsProfileOwner.fromJson(Map json) => _$GhCommitsProfileOwnerFromJson(json); @@ -7677,7 +7748,7 @@ class GhCommitsSponsorable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhCommitsStatus with EquatableMixin implements GhCommitsNode { - GhCommitsStatus(); + GhCommitsStatus({this.state}); factory GhCommitsStatus.fromJson(Map json) => _$GhCommitsStatusFromJson(json); @@ -7695,7 +7766,7 @@ class GhCommitsStatus with EquatableMixin implements GhCommitsNode { @JsonSerializable(explicitToJson: true) class GhCommitsCommitHistoryConnection with EquatableMixin { - GhCommitsCommitHistoryConnection(); + GhCommitsCommitHistoryConnection({this.pageInfo, this.nodes}); factory GhCommitsCommitHistoryConnection.fromJson( Map json) => @@ -7713,7 +7784,7 @@ class GhCommitsCommitHistoryConnection with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhCommitsPageInfo with EquatableMixin { - GhCommitsPageInfo(); + GhCommitsPageInfo({this.hasNextPage, this.endCursor}); factory GhCommitsPageInfo.fromJson(Map json) => _$GhCommitsPageInfoFromJson(json); @@ -7809,7 +7880,11 @@ enum GhCommitsStatusState { @JsonSerializable(explicitToJson: true) class GhCommitsArguments extends JsonSerializable with EquatableMixin { GhCommitsArguments( - {this.owner, this.name, this.ref, this.hasRef, this.after}); + {@required this.owner, + @required this.name, + @required this.ref, + @required this.hasRef, + this.after}); factory GhCommitsArguments.fromJson(Map json) => _$GhCommitsArgumentsFromJson(json); @@ -8150,7 +8225,7 @@ class GhCommitsQuery extends GraphQLQuery { @JsonSerializable(explicitToJson: true) class GhRepoId with EquatableMixin { - GhRepoId(); + GhRepoId({this.repository}); factory GhRepoId.fromJson(Map json) => _$GhRepoIdFromJson(json); @@ -8205,7 +8280,7 @@ class GhRepoIdPinnableItem with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoIdNode with EquatableMixin { - GhRepoIdNode(); + GhRepoIdNode({this.id}); factory GhRepoIdNode.fromJson(Map json) => _$GhRepoIdNodeFromJson(json); @@ -8222,7 +8297,7 @@ class GhRepoIdNode with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoIdProjectOwner with EquatableMixin { - GhRepoIdProjectOwner(); + GhRepoIdProjectOwner({this.id}); factory GhRepoIdProjectOwner.fromJson(Map json) => _$GhRepoIdProjectOwnerFromJson(json); @@ -8239,7 +8314,7 @@ class GhRepoIdProjectOwner with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoIdRegistryPackageOwner with EquatableMixin { - GhRepoIdRegistryPackageOwner(); + GhRepoIdRegistryPackageOwner({this.id}); factory GhRepoIdRegistryPackageOwner.fromJson(Map json) => _$GhRepoIdRegistryPackageOwnerFromJson(json); @@ -8256,7 +8331,7 @@ class GhRepoIdRegistryPackageOwner with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoIdRegistryPackageSearch with EquatableMixin { - GhRepoIdRegistryPackageSearch(); + GhRepoIdRegistryPackageSearch({this.id}); factory GhRepoIdRegistryPackageSearch.fromJson(Map json) => _$GhRepoIdRegistryPackageSearchFromJson(json); @@ -8273,7 +8348,7 @@ class GhRepoIdRegistryPackageSearch with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoIdSubscribable with EquatableMixin { - GhRepoIdSubscribable(); + GhRepoIdSubscribable({this.id}); factory GhRepoIdSubscribable.fromJson(Map json) => _$GhRepoIdSubscribableFromJson(json); @@ -8290,7 +8365,7 @@ class GhRepoIdSubscribable with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoIdStarrable with EquatableMixin { - GhRepoIdStarrable(); + GhRepoIdStarrable({this.id}); factory GhRepoIdStarrable.fromJson(Map json) => _$GhRepoIdStarrableFromJson(json); @@ -8339,7 +8414,7 @@ class GhRepoIdRepositoryInfo with EquatableMixin { @JsonSerializable(explicitToJson: true) class GhRepoIdArguments extends JsonSerializable with EquatableMixin { - GhRepoIdArguments({this.owner, this.name}); + GhRepoIdArguments({@required this.owner, @required this.name}); factory GhRepoIdArguments.fromJson(Map json) => _$GhRepoIdArgumentsFromJson(json); diff --git a/lib/graphql/gh.g.dart b/lib/graphql/gh.g.dart index eb4e103..9188017 100644 --- a/lib/graphql/gh.g.dart +++ b/lib/graphql/gh.g.dart @@ -7,10 +7,11 @@ part of 'gh.dart'; // ************************************************************************** GhRepo _$GhRepoFromJson(Map json) { - return GhRepo() - ..repository = json['repository'] == null + return GhRepo( + repository: json['repository'] == null ? null - : GhRepoRepository.fromJson(json['repository'] as Map); + : GhRepoRepository.fromJson(json['repository'] as Map), + ); } Map _$GhRepoToJson(GhRepo instance) => { @@ -18,7 +19,50 @@ Map _$GhRepoToJson(GhRepo instance) => { }; GhRepoRepository _$GhRepoRepositoryFromJson(Map json) { - return GhRepoRepository() + 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) @@ -31,53 +75,20 @@ GhRepoRepository _$GhRepoRepositoryFromJson(Map json) { ? 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 ..viewerSubscription = _$enumDecodeNullable( _$GhRepoSubscriptionStateEnumMap, json['viewerSubscription']) ..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 + ..licenseInfo = json['licenseInfo'] == 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) + : GhRepoLicense.fromJson(json['licenseInfo'] as Map) ..resolveType = json['__typename'] as String; } @@ -154,10 +165,10 @@ const _$GhRepoSubscriptionStateEnumMap = { GhRepoRepositoryOwner _$GhRepoRepositoryOwnerFromJson( Map json) { - return GhRepoRepositoryOwner() - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..resolveType = json['__typename'] as String; + return GhRepoRepositoryOwner( + login: json['login'] as String, + avatarUrl: json['avatarUrl'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoRepositoryOwnerToJson( @@ -170,7 +181,9 @@ Map _$GhRepoRepositoryOwnerToJson( GhRepoStargazerConnection _$GhRepoStargazerConnectionFromJson( Map json) { - return GhRepoStargazerConnection()..totalCount = json['totalCount'] as int; + return GhRepoStargazerConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhRepoStargazerConnectionToJson( @@ -181,7 +194,9 @@ Map _$GhRepoStargazerConnectionToJson( GhRepoRepositoryConnection _$GhRepoRepositoryConnectionFromJson( Map json) { - return GhRepoRepositoryConnection()..totalCount = json['totalCount'] as int; + return GhRepoRepositoryConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhRepoRepositoryConnectionToJson( @@ -191,10 +206,10 @@ Map _$GhRepoRepositoryConnectionToJson( }; GhRepoLanguage _$GhRepoLanguageFromJson(Map json) { - return GhRepoLanguage() - ..color = json['color'] as String - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; + return GhRepoLanguage( + color: json['color'] as String, + name: json['name'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoLanguageToJson(GhRepoLanguage instance) => @@ -214,7 +229,9 @@ Map _$GhRepoNodeToJson(GhRepoNode instance) => }; GhRepoUserConnection _$GhRepoUserConnectionFromJson(Map json) { - return GhRepoUserConnection()..totalCount = json['totalCount'] as int; + return GhRepoUserConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhRepoUserConnectionToJson( @@ -225,7 +242,9 @@ Map _$GhRepoUserConnectionToJson( GhRepoIssueConnection _$GhRepoIssueConnectionFromJson( Map json) { - return GhRepoIssueConnection()..totalCount = json['totalCount'] as int; + return GhRepoIssueConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhRepoIssueConnectionToJson( @@ -236,7 +255,9 @@ Map _$GhRepoIssueConnectionToJson( GhRepoPullRequestConnection _$GhRepoPullRequestConnectionFromJson( Map json) { - return GhRepoPullRequestConnection()..totalCount = json['totalCount'] as int; + return GhRepoPullRequestConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhRepoPullRequestConnectionToJson( @@ -247,7 +268,9 @@ Map _$GhRepoPullRequestConnectionToJson( GhRepoProjectConnection _$GhRepoProjectConnectionFromJson( Map json) { - return GhRepoProjectConnection()..totalCount = json['totalCount'] as int; + return GhRepoProjectConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhRepoProjectConnectionToJson( @@ -258,7 +281,9 @@ Map _$GhRepoProjectConnectionToJson( GhRepoReleaseConnection _$GhRepoReleaseConnectionFromJson( Map json) { - return GhRepoReleaseConnection()..totalCount = json['totalCount'] as int; + return GhRepoReleaseConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhRepoReleaseConnectionToJson( @@ -269,13 +294,14 @@ Map _$GhRepoReleaseConnectionToJson( GhRepoLanguageConnection _$GhRepoLanguageConnectionFromJson( Map json) { - return GhRepoLanguageConnection() - ..totalSize = json['totalSize'] as int - ..edges = (json['edges'] as List) + return GhRepoLanguageConnection( + totalSize: json['totalSize'] as int, + edges: (json['edges'] as List) ?.map((e) => e == null ? null : GhRepoLanguageEdge.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhRepoLanguageConnectionToJson( @@ -286,11 +312,12 @@ Map _$GhRepoLanguageConnectionToJson( }; GhRepoLanguageEdge _$GhRepoLanguageEdgeFromJson(Map json) { - return GhRepoLanguageEdge() - ..size = json['size'] as int - ..node = json['node'] == null + return GhRepoLanguageEdge( + size: json['size'] as int, + node: json['node'] == null ? null - : GhRepoLanguage.fromJson(json['node'] as Map); + : GhRepoLanguage.fromJson(json['node'] as Map), + ); } Map _$GhRepoLanguageEdgeToJson(GhRepoLanguageEdge instance) => @@ -300,12 +327,12 @@ Map _$GhRepoLanguageEdgeToJson(GhRepoLanguageEdge instance) => }; GhRepoRef _$GhRepoRefFromJson(Map json) { - return GhRepoRef() - ..name = json['name'] as String - ..target = json['target'] == null + return GhRepoRef( + name: json['name'] as String, + target: json['target'] == null ? null - : GhRepoGitObject.fromJson(json['target'] as Map) - ..resolveType = json['__typename'] as String; + : GhRepoGitObject.fromJson(json['target'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhRepoRefToJson(GhRepoRef instance) => { @@ -324,12 +351,12 @@ Map _$GhRepoGitObjectToJson(GhRepoGitObject instance) => }; GhRepoCommit _$GhRepoCommitFromJson(Map json) { - return GhRepoCommit() - ..history = json['history'] == null + return GhRepoCommit( + history: json['history'] == null ? null : GhRepoCommitHistoryConnection.fromJson( - json['history'] as Map) - ..resolveType = json['__typename'] as String; + json['history'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhRepoCommitToJson(GhRepoCommit instance) => @@ -340,8 +367,9 @@ Map _$GhRepoCommitToJson(GhRepoCommit instance) => GhRepoCommitHistoryConnection _$GhRepoCommitHistoryConnectionFromJson( Map json) { - return GhRepoCommitHistoryConnection() - ..totalCount = json['totalCount'] as int; + return GhRepoCommitHistoryConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhRepoCommitHistoryConnectionToJson( @@ -381,12 +409,13 @@ Map _$GhRepoUniformResourceLocatableToJson( }; GhRepoRefConnection _$GhRepoRefConnectionFromJson(Map json) { - return GhRepoRefConnection() - ..totalCount = json['totalCount'] as int - ..nodes = (json['nodes'] as List) + return GhRepoRefConnection( + totalCount: json['totalCount'] as int, + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhRepoRef.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhRepoRefConnectionToJson( @@ -397,10 +426,10 @@ Map _$GhRepoRefConnectionToJson( }; GhRepoLicense _$GhRepoLicenseFromJson(Map json) { - return GhRepoLicense() - ..name = json['name'] as String - ..spdxId = json['spdxId'] as String - ..resolveType = json['__typename'] as String; + return GhRepoLicense( + name: json['name'] as String, + spdxId: json['spdxId'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoLicenseToJson(GhRepoLicense instance) => @@ -412,12 +441,13 @@ Map _$GhRepoLicenseToJson(GhRepoLicense instance) => GhRepoRepositoryTopicConnection _$GhRepoRepositoryTopicConnectionFromJson( Map json) { - return GhRepoRepositoryTopicConnection() - ..nodes = (json['nodes'] as List) + return GhRepoRepositoryTopicConnection( + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhRepoRepositoryTopic.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhRepoRepositoryTopicConnectionToJson( @@ -428,11 +458,12 @@ Map _$GhRepoRepositoryTopicConnectionToJson( GhRepoRepositoryTopic _$GhRepoRepositoryTopicFromJson( Map json) { - return GhRepoRepositoryTopic() - ..url = json['url'] as String - ..topic = json['topic'] == null + return GhRepoRepositoryTopic( + topic: json['topic'] == null ? null - : GhRepoTopic.fromJson(json['topic'] as Map) + : GhRepoTopic.fromJson(json['topic'] as Map), + ) + ..url = json['url'] as String ..resolveType = json['__typename'] as String; } @@ -445,9 +476,9 @@ Map _$GhRepoRepositoryTopicToJson( }; GhRepoTopic _$GhRepoTopicFromJson(Map json) { - return GhRepoTopic() - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; + return GhRepoTopic( + name: json['name'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoTopicToJson(GhRepoTopic instance) => @@ -473,14 +504,14 @@ Map _$GhRepoPinnableItemToJson(GhRepoPinnableItem instance) => {}; GhRepoProjectOwner _$GhRepoProjectOwnerFromJson(Map json) { - return GhRepoProjectOwner() - ..id = json['id'] as String - ..projectsUrl = json['projectsUrl'] as String - ..projects = json['projects'] == null + 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; + json['projects'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhRepoProjectOwnerToJson(GhRepoProjectOwner instance) => @@ -493,9 +524,9 @@ Map _$GhRepoProjectOwnerToJson(GhRepoProjectOwner instance) => GhRepoRegistryPackageOwner _$GhRepoRegistryPackageOwnerFromJson( Map json) { - return GhRepoRegistryPackageOwner() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; + return GhRepoRegistryPackageOwner( + id: json['id'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoRegistryPackageOwnerToJson( @@ -507,9 +538,9 @@ Map _$GhRepoRegistryPackageOwnerToJson( GhRepoRegistryPackageSearch _$GhRepoRegistryPackageSearchFromJson( Map json) { - return GhRepoRegistryPackageSearch() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; + return GhRepoRegistryPackageSearch( + id: json['id'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoRegistryPackageSearchToJson( @@ -520,21 +551,21 @@ Map _$GhRepoRegistryPackageSearchToJson( }; GhRepoRepositoryInfo _$GhRepoRepositoryInfoFromJson(Map json) { - return GhRepoRepositoryInfo() - ..owner = json['owner'] == null + 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 + : 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; + : GhRepoLicense.fromJson(json['licenseInfo'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhRepoRepositoryInfoToJson( @@ -570,18 +601,19 @@ Map _$GhRepoArgumentsToJson(GhRepoArguments instance) => }; GhUsers _$GhUsersFromJson(Map json) { - return GhUsers() - ..user = json['user'] == null + return GhUsers( + user: json['user'] == null ? null - : GhUsersUser.fromJson(json['user'] as Map) - ..organization = json['organization'] == null + : GhUsersUser.fromJson(json['user'] as Map), + organization: json['organization'] == null ? null : GhUsersOrganization.fromJson( - json['organization'] as Map) - ..repository = json['repository'] == null + json['organization'] as Map), + repository: json['repository'] == null ? null : GhUsersRepository.fromJson( - json['repository'] as Map); + json['repository'] as Map), + ); } Map _$GhUsersToJson(GhUsers instance) => { @@ -591,23 +623,24 @@ Map _$GhUsersToJson(GhUsers instance) => { }; GhUsersUser _$GhUsersUserFromJson(Map json) { - return GhUsersUser() + 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 - ..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; } @@ -626,14 +659,15 @@ Map _$GhUsersUserToJson(GhUsersUser instance) => GhUsersFollowerConnection _$GhUsersFollowerConnectionFromJson( Map json) { - return GhUsersFollowerConnection() - ..pageInfo = json['pageInfo'] == null + return GhUsersFollowerConnection( + pageInfo: json['pageInfo'] == null ? null - : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhUsersFollowerConnectionToJson( @@ -644,9 +678,10 @@ Map _$GhUsersFollowerConnectionToJson( }; GhUsersPageInfo _$GhUsersPageInfoFromJson(Map json) { - return GhUsersPageInfo() - ..hasNextPage = json['hasNextPage'] as bool - ..endCursor = json['endCursor'] as String; + return GhUsersPageInfo( + hasNextPage: json['hasNextPage'] as bool, + endCursor: json['endCursor'] as String, + ); } Map _$GhUsersPageInfoToJson(GhUsersPageInfo instance) => @@ -674,10 +709,10 @@ Map _$GhUsersNodeToJson(GhUsersNode instance) => }; GhUsersActor _$GhUsersActorFromJson(Map json) { - return GhUsersActor() - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..resolveType = json['__typename'] as String; + return GhUsersActor( + login: json['login'] as String, + avatarUrl: json['avatarUrl'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhUsersActorToJson(GhUsersActor instance) => @@ -723,10 +758,10 @@ Map _$GhUsersProjectOwnerToJson( GhUsersRepositoryOwner _$GhUsersRepositoryOwnerFromJson( Map json) { - return GhUsersRepositoryOwner() - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..resolveType = json['__typename'] as String; + return GhUsersRepositoryOwner( + login: json['login'] as String, + avatarUrl: json['avatarUrl'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhUsersRepositoryOwnerToJson( @@ -750,11 +785,11 @@ Map _$GhUsersUniformResourceLocatableToJson( }; 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; + return GhUsersProfileOwner( + login: json['login'] as String, + name: json['name'] as String, + location: json['location'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhUsersProfileOwnerToJson( @@ -777,14 +812,15 @@ Map _$GhUsersSponsorableToJson(GhUsersSponsorable instance) => GhUsersFollowingConnection _$GhUsersFollowingConnectionFromJson( Map json) { - return GhUsersFollowingConnection() - ..pageInfo = json['pageInfo'] == null + return GhUsersFollowingConnection( + pageInfo: json['pageInfo'] == null ? null - : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhUsersFollowingConnectionToJson( @@ -795,15 +831,16 @@ Map _$GhUsersFollowingConnectionToJson( }; GhUsersOrganization _$GhUsersOrganizationFromJson(Map json) { - return GhUsersOrganization() + 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 - ..membersWithRole = json['membersWithRole'] == null - ? null - : GhUsersOrganizationMemberConnection.fromJson( - json['membersWithRole'] as Map) ..resolveType = json['__typename'] as String; } @@ -820,14 +857,15 @@ Map _$GhUsersOrganizationToJson( GhUsersOrganizationMemberConnection _$GhUsersOrganizationMemberConnectionFromJson(Map json) { - return GhUsersOrganizationMemberConnection() - ..pageInfo = json['pageInfo'] == null + return GhUsersOrganizationMemberConnection( + pageInfo: json['pageInfo'] == null ? null - : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhUsersOrganizationMemberConnectionToJson( @@ -849,11 +887,12 @@ Map _$GhUsersMemberStatusableToJson( }; GhUsersRepository _$GhUsersRepositoryFromJson(Map json) { - return GhUsersRepository() - ..watchers = json['watchers'] == null + return GhUsersRepository( + watchers: json['watchers'] == null ? null : GhUsersUserConnection.fromJson( - json['watchers'] as Map) + json['watchers'] as Map), + ) ..stargazers = json['stargazers'] == null ? null : GhUsersStargazerConnection.fromJson( @@ -870,14 +909,15 @@ Map _$GhUsersRepositoryToJson(GhUsersRepository instance) => GhUsersUserConnection _$GhUsersUserConnectionFromJson( Map json) { - return GhUsersUserConnection() - ..pageInfo = json['pageInfo'] == null + return GhUsersUserConnection( + pageInfo: json['pageInfo'] == null ? null - : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhUsersUserConnectionToJson( @@ -889,14 +929,15 @@ Map _$GhUsersUserConnectionToJson( GhUsersStargazerConnection _$GhUsersStargazerConnectionFromJson( Map json) { - return GhUsersStargazerConnection() - ..pageInfo = json['pageInfo'] == null + return GhUsersStargazerConnection( + pageInfo: json['pageInfo'] == null ? null - : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map), + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUsersUser.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhUsersStargazerConnectionToJson( @@ -925,12 +966,12 @@ Map _$GhUsersSubscribableToJson( }; GhUsersStarrable _$GhUsersStarrableFromJson(Map json) { - return GhUsersStarrable() - ..stargazers = json['stargazers'] == null + return GhUsersStarrable( + stargazers: json['stargazers'] == null ? null : GhUsersStargazerConnection.fromJson( - json['stargazers'] as Map) - ..resolveType = json['__typename'] as String; + json['stargazers'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhUsersStarrableToJson(GhUsersStarrable instance) => @@ -976,11 +1017,12 @@ Map _$GhUsersArgumentsToJson(GhUsersArguments instance) => }; GhCreateIssue _$GhCreateIssueFromJson(Map json) { - return GhCreateIssue() - ..createIssue = json['createIssue'] == null + return GhCreateIssue( + createIssue: json['createIssue'] == null ? null : GhCreateIssueCreateIssuePayload.fromJson( - json['createIssue'] as Map); + json['createIssue'] as Map), + ); } Map _$GhCreateIssueToJson(GhCreateIssue instance) => @@ -990,10 +1032,11 @@ Map _$GhCreateIssueToJson(GhCreateIssue instance) => GhCreateIssueCreateIssuePayload _$GhCreateIssueCreateIssuePayloadFromJson( Map json) { - return GhCreateIssueCreateIssuePayload() - ..issue = json['issue'] == null + return GhCreateIssueCreateIssuePayload( + issue: json['issue'] == null ? null - : GhCreateIssueIssue.fromJson(json['issue'] as Map); + : GhCreateIssueIssue.fromJson(json['issue'] as Map), + ); } Map _$GhCreateIssueCreateIssuePayloadToJson( @@ -1003,8 +1046,9 @@ Map _$GhCreateIssueCreateIssuePayloadToJson( }; GhCreateIssueIssue _$GhCreateIssueIssueFromJson(Map json) { - return GhCreateIssueIssue() - ..number = json['number'] as int + return GhCreateIssueIssue( + number: json['number'] as int, + ) ..repository = json['repository'] == null ? null : GhCreateIssueRepository.fromJson( @@ -1040,9 +1084,9 @@ Map _$GhCreateIssueRepositoryToJson( GhCreateIssueRepositoryOwner _$GhCreateIssueRepositoryOwnerFromJson( Map json) { - return GhCreateIssueRepositoryOwner() - ..login = json['login'] as String - ..resolveType = json['__typename'] as String; + return GhCreateIssueRepositoryOwner( + login: json['login'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhCreateIssueRepositoryOwnerToJson( @@ -1143,13 +1187,13 @@ Map _$GhCreateIssueUniformResourceLocatableToJson( GhCreateIssueRepositoryInfo _$GhCreateIssueRepositoryInfoFromJson( Map json) { - return GhCreateIssueRepositoryInfo() - ..owner = json['owner'] == null + return GhCreateIssueRepositoryInfo( + owner: json['owner'] == null ? null : GhCreateIssueRepositoryOwner.fromJson( - json['owner'] as Map) - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; + json['owner'] as Map), + name: json['name'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhCreateIssueRepositoryInfoToJson( @@ -1259,12 +1303,12 @@ Map _$GhCreateIssueReactableToJson( GhCreateIssueRepositoryNode _$GhCreateIssueRepositoryNodeFromJson( Map json) { - return GhCreateIssueRepositoryNode() - ..repository = json['repository'] == null + return GhCreateIssueRepositoryNode( + repository: json['repository'] == null ? null : GhCreateIssueRepository.fromJson( - json['repository'] as Map) - ..resolveType = json['__typename'] as String; + json['repository'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhCreateIssueRepositoryNodeToJson( @@ -1292,15 +1336,16 @@ Map _$GhCreateIssueArgumentsToJson( }; GhOpenIssue _$GhOpenIssueFromJson(Map json) { - return GhOpenIssue() - ..reopenIssue = json['reopenIssue'] == null + return GhOpenIssue( + reopenIssue: json['reopenIssue'] == null ? null : GhOpenIssueReopenIssuePayload.fromJson( - json['reopenIssue'] as Map) - ..closeIssue = json['closeIssue'] == null + json['reopenIssue'] as Map), + closeIssue: json['closeIssue'] == null ? null : GhOpenIssueCloseIssuePayload.fromJson( - json['closeIssue'] as Map); + json['closeIssue'] as Map), + ); } Map _$GhOpenIssueToJson(GhOpenIssue instance) => @@ -1311,10 +1356,11 @@ Map _$GhOpenIssueToJson(GhOpenIssue instance) => GhOpenIssueReopenIssuePayload _$GhOpenIssueReopenIssuePayloadFromJson( Map json) { - return GhOpenIssueReopenIssuePayload() - ..issue = json['issue'] == null + return GhOpenIssueReopenIssuePayload( + issue: json['issue'] == null ? null - : GhOpenIssueIssue.fromJson(json['issue'] as Map); + : GhOpenIssueIssue.fromJson(json['issue'] as Map), + ); } Map _$GhOpenIssueReopenIssuePayloadToJson( @@ -1365,9 +1411,9 @@ Map _$GhOpenIssueAssignableToJson( }; GhOpenIssueClosable _$GhOpenIssueClosableFromJson(Map json) { - return GhOpenIssueClosable() - ..closed = json['closed'] as bool - ..resolveType = json['__typename'] as String; + return GhOpenIssueClosable( + closed: json['closed'] as bool, + )..resolveType = json['__typename'] as String; } Map _$GhOpenIssueClosableToJson( @@ -1475,10 +1521,11 @@ Map _$GhOpenIssueUniformResourceLocatableToJson( GhOpenIssueCloseIssuePayload _$GhOpenIssueCloseIssuePayloadFromJson( Map json) { - return GhOpenIssueCloseIssuePayload() - ..issue = json['issue'] == null + return GhOpenIssueCloseIssuePayload( + issue: json['issue'] == null ? null - : GhOpenIssueIssue.fromJson(json['issue'] as Map); + : GhOpenIssueIssue.fromJson(json['issue'] as Map), + ); } Map _$GhOpenIssueCloseIssuePayloadToJson( @@ -1502,11 +1549,12 @@ Map _$GhOpenIssueArgumentsToJson( }; GhRepos _$GhReposFromJson(Map json) { - return GhRepos() - ..repositoryOwner = json['repositoryOwner'] == null + return GhRepos( + repositoryOwner: json['repositoryOwner'] == null ? null : GhReposRepositoryOwner.fromJson( - json['repositoryOwner'] as Map); + json['repositoryOwner'] as Map), + ); } Map _$GhReposToJson(GhRepos instance) => { @@ -1515,10 +1563,10 @@ Map _$GhReposToJson(GhRepos instance) => { GhReposRepositoryOwner _$GhReposRepositoryOwnerFromJson( Map json) { - return GhReposRepositoryOwner() - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..resolveType = json['__typename'] as String; + return GhReposRepositoryOwner( + login: json['login'] as String, + avatarUrl: json['avatarUrl'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhReposRepositoryOwnerToJson( @@ -1530,15 +1578,16 @@ Map _$GhReposRepositoryOwnerToJson( }; GhReposUser _$GhReposUserFromJson(Map json) { - return GhReposUser() - ..repositories = json['repositories'] == null + return GhReposUser( + repositories: json['repositories'] == null ? null : GhReposRepositoryConnection.fromJson( - json['repositories'] as Map) - ..starredRepositories = json['starredRepositories'] == null + json['repositories'] as Map), + starredRepositories: json['starredRepositories'] == null ? null : GhReposStarredRepositoryConnection.fromJson( - json['starredRepositories'] as Map) + json['starredRepositories'] as Map), + ) ..resolveType = json['__typename'] as String ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String; @@ -1555,16 +1604,17 @@ Map _$GhReposUserToJson(GhReposUser instance) => GhReposRepositoryConnection _$GhReposRepositoryConnectionFromJson( Map json) { - return GhReposRepositoryConnection() - ..totalCount = json['totalCount'] as int - ..pageInfo = json['pageInfo'] == null + return GhReposRepositoryConnection( + totalCount: json['totalCount'] as int, + pageInfo: json['pageInfo'] == null ? null - : GhReposPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) + : GhReposPageInfo.fromJson(json['pageInfo'] as Map), + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhReposRepository.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhReposRepositoryConnectionToJson( @@ -1576,9 +1626,10 @@ Map _$GhReposRepositoryConnectionToJson( }; GhReposPageInfo _$GhReposPageInfoFromJson(Map json) { - return GhReposPageInfo() - ..hasNextPage = json['hasNextPage'] as bool - ..endCursor = json['endCursor'] as String; + return GhReposPageInfo( + hasNextPage: json['hasNextPage'] as bool, + endCursor: json['endCursor'] as String, + ); } Map _$GhReposPageInfoToJson(GhReposPageInfo instance) => @@ -1588,7 +1639,16 @@ Map _$GhReposPageInfoToJson(GhReposPageInfo instance) => }; GhReposRepository _$GhReposRepositoryFromJson(Map json) { - return GhReposRepository() + 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) @@ -1603,14 +1663,6 @@ GhReposRepository _$GhReposRepositoryFromJson(Map json) { ? 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; } @@ -1630,7 +1682,9 @@ Map _$GhReposRepositoryToJson(GhReposRepository instance) => GhReposStargazerConnection _$GhReposStargazerConnectionFromJson( Map json) { - return GhReposStargazerConnection()..totalCount = json['totalCount'] as int; + return GhReposStargazerConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhReposStargazerConnectionToJson( @@ -1640,10 +1694,10 @@ Map _$GhReposStargazerConnectionToJson( }; GhReposLanguage _$GhReposLanguageFromJson(Map json) { - return GhReposLanguage() - ..color = json['color'] as String - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; + return GhReposLanguage( + color: json['color'] as String, + name: json['name'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhReposLanguageToJson(GhReposLanguage instance) => @@ -1715,12 +1769,12 @@ Map _$GhReposSubscribableToJson( }; GhReposStarrable _$GhReposStarrableFromJson(Map json) { - return GhReposStarrable() - ..stargazers = json['stargazers'] == null + return GhReposStarrable( + stargazers: json['stargazers'] == null ? null : GhReposStargazerConnection.fromJson( - json['stargazers'] as Map) - ..resolveType = json['__typename'] as String; + json['stargazers'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhReposStarrableToJson(GhReposStarrable instance) => @@ -1743,18 +1797,19 @@ Map _$GhReposUniformResourceLocatableToJson( GhReposRepositoryInfo _$GhReposRepositoryInfoFromJson( Map json) { - return GhReposRepositoryInfo() - ..owner = json['owner'] == null + 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 + : 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; + : DateTime.parse(json['updatedAt'] as String), + )..resolveType = json['__typename'] as String; } Map _$GhReposRepositoryInfoToJson( @@ -1771,15 +1826,16 @@ Map _$GhReposRepositoryInfoToJson( GhReposStarredRepositoryConnection _$GhReposStarredRepositoryConnectionFromJson( Map json) { - return GhReposStarredRepositoryConnection() - ..pageInfo = json['pageInfo'] == null + return GhReposStarredRepositoryConnection( + pageInfo: json['pageInfo'] == null ? null - : GhReposPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) + : GhReposPageInfo.fromJson(json['pageInfo'] as Map), + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhReposRepository.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhReposStarredRepositoryConnectionToJson( @@ -1827,11 +1883,12 @@ Map _$GhReposSponsorableToJson(GhReposSponsorable instance) => }; GhReposOrganization _$GhReposOrganizationFromJson(Map json) { - return GhReposOrganization() - ..pinnableItems = json['pinnableItems'] == null + return GhReposOrganization( + pinnableItems: json['pinnableItems'] == null ? null : GhReposPinnableItemConnection.fromJson( - json['pinnableItems'] as Map) + json['pinnableItems'] as Map), + ) ..resolveType = json['__typename'] as String ..login = json['login'] as String ..avatarUrl = json['avatarUrl'] as String; @@ -1848,15 +1905,16 @@ Map _$GhReposOrganizationToJson( GhReposPinnableItemConnection _$GhReposPinnableItemConnectionFromJson( Map json) { - return GhReposPinnableItemConnection() - ..pageInfo = json['pageInfo'] == null + return GhReposPinnableItemConnection( + pageInfo: json['pageInfo'] == null ? null - : GhReposPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) + : GhReposPageInfo.fromJson(json['pageInfo'] as Map), + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhReposPinnableItem.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhReposPinnableItemConnectionToJson( @@ -1893,11 +1951,12 @@ Map _$GhReposArgumentsToJson(GhReposArguments instance) => }; GhWatch _$GhWatchFromJson(Map json) { - return GhWatch() - ..updateSubscription = json['updateSubscription'] == null + return GhWatch( + updateSubscription: json['updateSubscription'] == null ? null : GhWatchUpdateSubscriptionPayload.fromJson( - json['updateSubscription'] as Map); + json['updateSubscription'] as Map), + ); } Map _$GhWatchToJson(GhWatch instance) => { @@ -1906,11 +1965,12 @@ Map _$GhWatchToJson(GhWatch instance) => { GhWatchUpdateSubscriptionPayload _$GhWatchUpdateSubscriptionPayloadFromJson( Map json) { - return GhWatchUpdateSubscriptionPayload() - ..subscribable = json['subscribable'] == null + return GhWatchUpdateSubscriptionPayload( + subscribable: json['subscribable'] == null ? null : GhWatchSubscribable.fromJson( - json['subscribable'] as Map); + json['subscribable'] as Map), + ); } Map _$GhWatchUpdateSubscriptionPayloadToJson( @@ -1930,10 +1990,10 @@ Map _$GhWatchSubscribableToJson( }; GhWatchRepository _$GhWatchRepositoryFromJson(Map json) { - return GhWatchRepository() - ..viewerSubscription = _$enumDecodeNullable( - _$GhWatchSubscriptionStateEnumMap, json['viewerSubscription']) - ..resolveType = json['__typename'] as String; + return GhWatchRepository( + viewerSubscription: _$enumDecodeNullable( + _$GhWatchSubscriptionStateEnumMap, json['viewerSubscription']), + )..resolveType = json['__typename'] as String; } Map _$GhWatchRepositoryToJson(GhWatchRepository instance) => @@ -2047,14 +2107,15 @@ Map _$GhWatchArgumentsToJson(GhWatchArguments instance) => }; GhUser _$GhUserFromJson(Map json) { - return GhUser() - ..repositoryOwner = json['repositoryOwner'] == null + return GhUser( + repositoryOwner: json['repositoryOwner'] == null ? null : GhUserRepositoryOwner.fromJson( - json['repositoryOwner'] as Map) - ..viewer = json['viewer'] == null + json['repositoryOwner'] as Map), + viewer: json['viewer'] == null ? null - : GhUserUser.fromJson(json['viewer'] as Map); + : GhUserUser.fromJson(json['viewer'] as Map), + ); } Map _$GhUserToJson(GhUser instance) => { @@ -2064,12 +2125,12 @@ Map _$GhUserToJson(GhUser instance) => { 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; + 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( @@ -2083,42 +2144,43 @@ Map _$GhUserRepositoryOwnerToJson( }; 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 + 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 + : 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 + json['starredRepositories'] as Map), + followers: json['followers'] == null ? null : GhUserFollowerConnection.fromJson( - json['followers'] as Map) - ..following = json['following'] == null + json['followers'] as Map), + following: json['following'] == null ? null : GhUserFollowingConnection.fromJson( - json['following'] as Map) - ..contributionsCollection = json['contributionsCollection'] == null + json['following'] as Map), + contributionsCollection: json['contributionsCollection'] == null ? null : GhUserContributionsCollection.fromJson( - json['contributionsCollection'] as Map) - ..repositories = json['repositories'] == null + json['contributionsCollection'] as Map), + repositories: json['repositories'] == null ? null : GhUserRepositoryConnection.fromJson( - json['repositories'] as Map) - ..pinnedItems = json['pinnedItems'] == null + 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 + 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 @@ -2152,8 +2214,9 @@ Map _$GhUserUserToJson(GhUserUser instance) => GhUserStarredRepositoryConnection _$GhUserStarredRepositoryConnectionFromJson( Map json) { - return GhUserStarredRepositoryConnection() - ..totalCount = json['totalCount'] as int; + return GhUserStarredRepositoryConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhUserStarredRepositoryConnectionToJson( @@ -2164,7 +2227,9 @@ Map _$GhUserStarredRepositoryConnectionToJson( GhUserFollowerConnection _$GhUserFollowerConnectionFromJson( Map json) { - return GhUserFollowerConnection()..totalCount = json['totalCount'] as int; + return GhUserFollowerConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhUserFollowerConnectionToJson( @@ -2175,7 +2240,9 @@ Map _$GhUserFollowerConnectionToJson( GhUserFollowingConnection _$GhUserFollowingConnectionFromJson( Map json) { - return GhUserFollowingConnection()..totalCount = json['totalCount'] as int; + return GhUserFollowingConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhUserFollowingConnectionToJson( @@ -2186,11 +2253,12 @@ Map _$GhUserFollowingConnectionToJson( GhUserContributionsCollection _$GhUserContributionsCollectionFromJson( Map json) { - return GhUserContributionsCollection() - ..contributionCalendar = json['contributionCalendar'] == null + return GhUserContributionsCollection( + contributionCalendar: json['contributionCalendar'] == null ? null : GhUserContributionCalendar.fromJson( - json['contributionCalendar'] as Map); + json['contributionCalendar'] as Map), + ); } Map _$GhUserContributionsCollectionToJson( @@ -2201,13 +2269,14 @@ Map _$GhUserContributionsCollectionToJson( GhUserContributionCalendar _$GhUserContributionCalendarFromJson( Map json) { - return GhUserContributionCalendar() - ..weeks = (json['weeks'] as List) + return GhUserContributionCalendar( + weeks: (json['weeks'] as List) ?.map((e) => e == null ? null : GhUserContributionCalendarWeek.fromJson( e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhUserContributionCalendarToJson( @@ -2218,12 +2287,13 @@ Map _$GhUserContributionCalendarToJson( GhUserContributionCalendarWeek _$GhUserContributionCalendarWeekFromJson( Map json) { - return GhUserContributionCalendarWeek() - ..contributionDays = (json['contributionDays'] as List) + return GhUserContributionCalendarWeek( + contributionDays: (json['contributionDays'] as List) ?.map((e) => e == null ? null : GhUserContributionCalendarDay.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhUserContributionCalendarWeekToJson( @@ -2235,7 +2305,9 @@ Map _$GhUserContributionCalendarWeekToJson( GhUserContributionCalendarDay _$GhUserContributionCalendarDayFromJson( Map json) { - return GhUserContributionCalendarDay()..color = json['color'] as String; + return GhUserContributionCalendarDay( + color: json['color'] as String, + ); } Map _$GhUserContributionCalendarDayToJson( @@ -2246,13 +2318,14 @@ Map _$GhUserContributionCalendarDayToJson( GhUserRepositoryConnection _$GhUserRepositoryConnectionFromJson( Map json) { - return GhUserRepositoryConnection() - ..totalCount = json['totalCount'] as int - ..nodes = (json['nodes'] as List) + return GhUserRepositoryConnection( + totalCount: json['totalCount'] as int, + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUserRepository.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhUserRepositoryConnectionToJson( @@ -2263,7 +2336,16 @@ Map _$GhUserRepositoryConnectionToJson( }; GhUserRepository _$GhUserRepositoryFromJson(Map json) { - return GhUserRepository() + 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) @@ -2275,14 +2357,6 @@ GhUserRepository _$GhUserRepositoryFromJson(Map json) { ? 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; } @@ -2301,7 +2375,9 @@ Map _$GhUserRepositoryToJson(GhUserRepository instance) => GhUserStargazerConnection _$GhUserStargazerConnectionFromJson( Map json) { - return GhUserStargazerConnection()..totalCount = json['totalCount'] as int; + return GhUserStargazerConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhUserStargazerConnectionToJson( @@ -2311,10 +2387,10 @@ Map _$GhUserStargazerConnectionToJson( }; GhUserLanguage _$GhUserLanguageFromJson(Map json) { - return GhUserLanguage() - ..color = json['color'] as String - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; + return GhUserLanguage( + color: json['color'] as String, + name: json['name'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhUserLanguageToJson(GhUserLanguage instance) => @@ -2383,12 +2459,12 @@ Map _$GhUserSubscribableToJson(GhUserSubscribable instance) => }; GhUserStarrable _$GhUserStarrableFromJson(Map json) { - return GhUserStarrable() - ..stargazers = json['stargazers'] == null + return GhUserStarrable( + stargazers: json['stargazers'] == null ? null : GhUserStargazerConnection.fromJson( - json['stargazers'] as Map) - ..resolveType = json['__typename'] as String; + json['stargazers'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhUserStarrableToJson(GhUserStarrable instance) => @@ -2410,15 +2486,15 @@ Map _$GhUserUniformResourceLocatableToJson( }; GhUserRepositoryInfo _$GhUserRepositoryInfoFromJson(Map json) { - return GhUserRepositoryInfo() - ..owner = json['owner'] == null + 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; + : 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( @@ -2434,13 +2510,14 @@ Map _$GhUserRepositoryInfoToJson( GhUserPinnableItemConnection _$GhUserPinnableItemConnectionFromJson( Map json) { - return GhUserPinnableItemConnection() - ..totalCount = json['totalCount'] as int - ..nodes = (json['nodes'] as List) + return GhUserPinnableItemConnection( + totalCount: json['totalCount'] as int, + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhUserPinnableItem.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhUserPinnableItemConnectionToJson( @@ -2469,16 +2546,16 @@ Map _$GhUserActorToJson(GhUserActor instance) => }; 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 + 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; + json['pinnedItems'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhUserProfileOwnerToJson(GhUserProfileOwner instance) => @@ -2501,27 +2578,28 @@ Map _$GhUserSponsorableToJson(GhUserSponsorable instance) => }; 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 + 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 + : DateTime.parse(json['createdAt'] as String), + pinnedItems: json['pinnedItems'] == null ? null : GhUserPinnableItemConnection.fromJson( - json['pinnedItems'] as Map) - ..pinnableItems = json['pinnableItems'] == null + json['pinnedItems'] as Map), + pinnableItems: json['pinnableItems'] == null ? null : GhUserPinnableItemConnection.fromJson( - json['pinnableItems'] as Map) - ..membersWithRole = json['membersWithRole'] == null + json['pinnableItems'] as Map), + membersWithRole: json['membersWithRole'] == null ? null : GhUserOrganizationMemberConnection.fromJson( - json['membersWithRole'] as Map) + json['membersWithRole'] as Map), + ) ..resolveType = json['__typename'] as String ..id = json['id'] as String ..login = json['login'] as String @@ -2549,8 +2627,9 @@ Map _$GhUserOrganizationToJson(GhUserOrganization instance) => GhUserOrganizationMemberConnection _$GhUserOrganizationMemberConnectionFromJson( Map json) { - return GhUserOrganizationMemberConnection() - ..totalCount = json['totalCount'] as int; + return GhUserOrganizationMemberConnection( + totalCount: json['totalCount'] as int, + ); } Map _$GhUserOrganizationMemberConnectionToJson( @@ -2584,15 +2663,16 @@ Map _$GhUserArgumentsToJson(GhUserArguments instance) => }; GhFollow _$GhFollowFromJson(Map json) { - return GhFollow() - ..followUser = json['followUser'] == null + return GhFollow( + followUser: json['followUser'] == null ? null : GhFollowFollowUserPayload.fromJson( - json['followUser'] as Map) - ..unfollowUser = json['unfollowUser'] == null + json['followUser'] as Map), + unfollowUser: json['unfollowUser'] == null ? null : GhFollowUnfollowUserPayload.fromJson( - json['unfollowUser'] as Map); + json['unfollowUser'] as Map), + ); } Map _$GhFollowToJson(GhFollow instance) => { @@ -2602,10 +2682,11 @@ Map _$GhFollowToJson(GhFollow instance) => { GhFollowFollowUserPayload _$GhFollowFollowUserPayloadFromJson( Map json) { - return GhFollowFollowUserPayload() - ..user = json['user'] == null + return GhFollowFollowUserPayload( + user: json['user'] == null ? null - : GhFollowUser.fromJson(json['user'] as Map); + : GhFollowUser.fromJson(json['user'] as Map), + ); } Map _$GhFollowFollowUserPayloadToJson( @@ -2615,9 +2696,9 @@ Map _$GhFollowFollowUserPayloadToJson( }; GhFollowUser _$GhFollowUserFromJson(Map json) { - return GhFollowUser() - ..viewerIsFollowing = json['viewerIsFollowing'] as bool - ..resolveType = json['__typename'] as String; + return GhFollowUser( + viewerIsFollowing: json['viewerIsFollowing'] as bool, + )..resolveType = json['__typename'] as String; } Map _$GhFollowUserToJson(GhFollowUser instance) => @@ -2732,10 +2813,11 @@ Map _$GhFollowSponsorableToJson( GhFollowUnfollowUserPayload _$GhFollowUnfollowUserPayloadFromJson( Map json) { - return GhFollowUnfollowUserPayload() - ..user = json['user'] == null + return GhFollowUnfollowUserPayload( + user: json['user'] == null ? null - : GhFollowUser.fromJson(json['user'] as Map); + : GhFollowUser.fromJson(json['user'] as Map), + ); } Map _$GhFollowUnfollowUserPayloadToJson( @@ -2758,14 +2840,16 @@ Map _$GhFollowArgumentsToJson(GhFollowArguments instance) => }; GhStar _$GhStarFromJson(Map json) { - return GhStar() - ..addStar = json['addStar'] == null + return GhStar( + addStar: json['addStar'] == null ? null - : GhStarAddStarPayload.fromJson(json['addStar'] as Map) - ..removeStar = json['removeStar'] == null + : GhStarAddStarPayload.fromJson( + json['addStar'] as Map), + removeStar: json['removeStar'] == null ? null : GhStarRemoveStarPayload.fromJson( - json['removeStar'] as Map); + json['removeStar'] as Map), + ); } Map _$GhStarToJson(GhStar instance) => { @@ -2774,10 +2858,11 @@ Map _$GhStarToJson(GhStar instance) => { }; GhStarAddStarPayload _$GhStarAddStarPayloadFromJson(Map json) { - return GhStarAddStarPayload() - ..starrable = json['starrable'] == null + return GhStarAddStarPayload( + starrable: json['starrable'] == null ? null - : GhStarStarrable.fromJson(json['starrable'] as Map); + : GhStarStarrable.fromJson(json['starrable'] as Map), + ); } Map _$GhStarAddStarPayloadToJson( @@ -2787,9 +2872,9 @@ Map _$GhStarAddStarPayloadToJson( }; GhStarStarrable _$GhStarStarrableFromJson(Map json) { - return GhStarStarrable() - ..viewerHasStarred = json['viewerHasStarred'] as bool - ..resolveType = json['__typename'] as String; + return GhStarStarrable( + viewerHasStarred: json['viewerHasStarred'] as bool, + )..resolveType = json['__typename'] as String; } Map _$GhStarStarrableToJson(GhStarStarrable instance) => @@ -2800,10 +2885,11 @@ Map _$GhStarStarrableToJson(GhStarStarrable instance) => GhStarRemoveStarPayload _$GhStarRemoveStarPayloadFromJson( Map json) { - return GhStarRemoveStarPayload() - ..starrable = json['starrable'] == null + return GhStarRemoveStarPayload( + starrable: json['starrable'] == null ? null - : GhStarStarrable.fromJson(json['starrable'] as Map); + : GhStarStarrable.fromJson(json['starrable'] as Map), + ); } Map _$GhStarRemoveStarPayloadToJson( @@ -2826,11 +2912,12 @@ Map _$GhStarArgumentsToJson(GhStarArguments instance) => }; GhObject _$GhObjectFromJson(Map json) { - return GhObject() - ..repository = json['repository'] == null + return GhObject( + repository: json['repository'] == null ? null : GhObjectRepository.fromJson( - json['repository'] as Map); + json['repository'] as Map), + ); } Map _$GhObjectToJson(GhObject instance) => { @@ -2838,11 +2925,11 @@ Map _$GhObjectToJson(GhObject instance) => { }; GhObjectRepository _$GhObjectRepositoryFromJson(Map json) { - return GhObjectRepository() - ..object = json['object'] == null + return GhObjectRepository( + object: json['object'] == null ? null - : GhObjectGitObject.fromJson(json['object'] as Map) - ..resolveType = json['__typename'] as String; + : GhObjectGitObject.fromJson(json['object'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhObjectRepositoryToJson(GhObjectRepository instance) => @@ -2861,13 +2948,13 @@ Map _$GhObjectGitObjectToJson(GhObjectGitObject instance) => }; GhObjectTree _$GhObjectTreeFromJson(Map json) { - return GhObjectTree() - ..entries = (json['entries'] as List) + return GhObjectTree( + entries: (json['entries'] as List) ?.map((e) => e == null ? null : GhObjectTreeEntry.fromJson(e as Map)) - ?.toList() - ..resolveType = json['__typename'] as String; + ?.toList(), + )..resolveType = json['__typename'] as String; } Map _$GhObjectTreeToJson(GhObjectTree instance) => @@ -2877,9 +2964,10 @@ Map _$GhObjectTreeToJson(GhObjectTree instance) => }; GhObjectTreeEntry _$GhObjectTreeEntryFromJson(Map json) { - return GhObjectTreeEntry() - ..type = json['type'] as String - ..name = json['name'] as String; + return GhObjectTreeEntry( + type: json['type'] as String, + name: json['name'] as String, + ); } Map _$GhObjectTreeEntryToJson(GhObjectTreeEntry instance) => @@ -2898,9 +2986,9 @@ Map _$GhObjectNodeToJson(GhObjectNode instance) => }; GhObjectBlob _$GhObjectBlobFromJson(Map json) { - return GhObjectBlob() - ..text = json['text'] as String - ..resolveType = json['__typename'] as String; + return GhObjectBlob( + text: json['text'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhObjectBlobToJson(GhObjectBlob instance) => @@ -3009,11 +3097,12 @@ Map _$GhObjectArgumentsToJson(GhObjectArguments instance) => }; GhCommits _$GhCommitsFromJson(Map json) { - return GhCommits() - ..repository = json['repository'] == null + return GhCommits( + repository: json['repository'] == null ? null : GhCommitsRepository.fromJson( - json['repository'] as Map); + json['repository'] as Map), + ); } Map _$GhCommitsToJson(GhCommits instance) => { @@ -3021,15 +3110,15 @@ Map _$GhCommitsToJson(GhCommits instance) => { }; GhCommitsRepository _$GhCommitsRepositoryFromJson(Map json) { - return GhCommitsRepository() - ..defaultBranchRef = json['defaultBranchRef'] == null + return GhCommitsRepository( + defaultBranchRef: json['defaultBranchRef'] == null ? null : GhCommitsRef.fromJson( - json['defaultBranchRef'] as Map) - ..ref = json['ref'] == null + json['defaultBranchRef'] as Map), + ref: json['ref'] == null ? null - : GhCommitsRef.fromJson(json['ref'] as Map) - ..resolveType = json['__typename'] as String; + : GhCommitsRef.fromJson(json['ref'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhCommitsRepositoryToJson( @@ -3064,24 +3153,24 @@ Map _$GhCommitsGitObjectToJson(GhCommitsGitObject instance) => }; 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 + 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 + : DateTime.parse(json['committedDate'] as String), + author: json['author'] == null ? null - : GhCommitsGitActor.fromJson(json['author'] as Map) - ..status = json['status'] == null + : GhCommitsGitActor.fromJson(json['author'] as Map), + status: json['status'] == null ? null - : GhCommitsStatus.fromJson(json['status'] as Map) - ..history = json['history'] == null + : GhCommitsStatus.fromJson(json['status'] as Map), + history: json['history'] == null ? null : GhCommitsCommitHistoryConnection.fromJson( - json['history'] as Map) - ..resolveType = json['__typename'] as String; + json['history'] as Map), + )..resolveType = json['__typename'] as String; } Map _$GhCommitsCommitToJson(GhCommitsCommit instance) => @@ -3097,12 +3186,13 @@ Map _$GhCommitsCommitToJson(GhCommitsCommit instance) => }; GhCommitsGitActor _$GhCommitsGitActorFromJson(Map json) { - return GhCommitsGitActor() - ..name = json['name'] as String - ..avatarUrl = json['avatarUrl'] as String - ..user = json['user'] == null + return GhCommitsGitActor( + name: json['name'] as String, + avatarUrl: json['avatarUrl'] as String, + user: json['user'] == null ? null - : GhCommitsUser.fromJson(json['user'] as Map); + : GhCommitsUser.fromJson(json['user'] as Map), + ); } Map _$GhCommitsGitActorToJson(GhCommitsGitActor instance) => @@ -3143,9 +3233,9 @@ Map _$GhCommitsNodeToJson(GhCommitsNode instance) => }; GhCommitsActor _$GhCommitsActorFromJson(Map json) { - return GhCommitsActor() - ..login = json['login'] as String - ..resolveType = json['__typename'] as String; + return GhCommitsActor( + login: json['login'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhCommitsActorToJson(GhCommitsActor instance) => @@ -3191,9 +3281,9 @@ Map _$GhCommitsProjectOwnerToJson( GhCommitsRepositoryOwner _$GhCommitsRepositoryOwnerFromJson( Map json) { - return GhCommitsRepositoryOwner() - ..login = json['login'] as String - ..resolveType = json['__typename'] as String; + return GhCommitsRepositoryOwner( + login: json['login'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhCommitsRepositoryOwnerToJson( @@ -3217,9 +3307,9 @@ Map _$GhCommitsUniformResourceLocatableToJson( GhCommitsProfileOwner _$GhCommitsProfileOwnerFromJson( Map json) { - return GhCommitsProfileOwner() - ..login = json['login'] as String - ..resolveType = json['__typename'] as String; + return GhCommitsProfileOwner( + login: json['login'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhCommitsProfileOwnerToJson( @@ -3240,9 +3330,9 @@ Map _$GhCommitsSponsorableToJson( }; GhCommitsStatus _$GhCommitsStatusFromJson(Map json) { - return GhCommitsStatus() - ..state = _$enumDecodeNullable(_$GhCommitsStatusStateEnumMap, json['state']) - ..resolveType = json['__typename'] as String; + return GhCommitsStatus( + state: _$enumDecodeNullable(_$GhCommitsStatusStateEnumMap, json['state']), + )..resolveType = json['__typename'] as String; } Map _$GhCommitsStatusToJson(GhCommitsStatus instance) => @@ -3261,15 +3351,16 @@ const _$GhCommitsStatusStateEnumMap = { GhCommitsCommitHistoryConnection _$GhCommitsCommitHistoryConnectionFromJson( Map json) { - return GhCommitsCommitHistoryConnection() - ..pageInfo = json['pageInfo'] == null + return GhCommitsCommitHistoryConnection( + pageInfo: json['pageInfo'] == null ? null - : GhCommitsPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) + : GhCommitsPageInfo.fromJson(json['pageInfo'] as Map), + nodes: (json['nodes'] as List) ?.map((e) => e == null ? null : GhCommitsCommit.fromJson(e as Map)) - ?.toList(); + ?.toList(), + ); } Map _$GhCommitsCommitHistoryConnectionToJson( @@ -3280,9 +3371,10 @@ Map _$GhCommitsCommitHistoryConnectionToJson( }; GhCommitsPageInfo _$GhCommitsPageInfoFromJson(Map json) { - return GhCommitsPageInfo() - ..hasNextPage = json['hasNextPage'] as bool - ..endCursor = json['endCursor'] as String; + return GhCommitsPageInfo( + hasNextPage: json['hasNextPage'] as bool, + endCursor: json['endCursor'] as String, + ); } Map _$GhCommitsPageInfoToJson(GhCommitsPageInfo instance) => @@ -3360,11 +3452,12 @@ Map _$GhCommitsArgumentsToJson(GhCommitsArguments instance) => }; GhRepoId _$GhRepoIdFromJson(Map json) { - return GhRepoId() - ..repository = json['repository'] == null + return GhRepoId( + repository: json['repository'] == null ? null : GhRepoIdRepository.fromJson( - json['repository'] as Map); + json['repository'] as Map), + ); } Map _$GhRepoIdToJson(GhRepoId instance) => { @@ -3392,9 +3485,9 @@ Map _$GhRepoIdPinnableItemToJson( {}; GhRepoIdNode _$GhRepoIdNodeFromJson(Map json) { - return GhRepoIdNode() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; + return GhRepoIdNode( + id: json['id'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoIdNodeToJson(GhRepoIdNode instance) => @@ -3404,9 +3497,9 @@ Map _$GhRepoIdNodeToJson(GhRepoIdNode instance) => }; GhRepoIdProjectOwner _$GhRepoIdProjectOwnerFromJson(Map json) { - return GhRepoIdProjectOwner() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; + return GhRepoIdProjectOwner( + id: json['id'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoIdProjectOwnerToJson( @@ -3418,9 +3511,9 @@ Map _$GhRepoIdProjectOwnerToJson( GhRepoIdRegistryPackageOwner _$GhRepoIdRegistryPackageOwnerFromJson( Map json) { - return GhRepoIdRegistryPackageOwner() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; + return GhRepoIdRegistryPackageOwner( + id: json['id'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoIdRegistryPackageOwnerToJson( @@ -3432,9 +3525,9 @@ Map _$GhRepoIdRegistryPackageOwnerToJson( GhRepoIdRegistryPackageSearch _$GhRepoIdRegistryPackageSearchFromJson( Map json) { - return GhRepoIdRegistryPackageSearch() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; + return GhRepoIdRegistryPackageSearch( + id: json['id'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoIdRegistryPackageSearchToJson( @@ -3445,9 +3538,9 @@ Map _$GhRepoIdRegistryPackageSearchToJson( }; GhRepoIdSubscribable _$GhRepoIdSubscribableFromJson(Map json) { - return GhRepoIdSubscribable() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; + return GhRepoIdSubscribable( + id: json['id'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoIdSubscribableToJson( @@ -3458,9 +3551,9 @@ Map _$GhRepoIdSubscribableToJson( }; GhRepoIdStarrable _$GhRepoIdStarrableFromJson(Map json) { - return GhRepoIdStarrable() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; + return GhRepoIdStarrable( + id: json['id'] as String, + )..resolveType = json['__typename'] as String; } Map _$GhRepoIdStarrableToJson(GhRepoIdStarrable instance) => diff --git a/pubspec.yaml b/pubspec.yaml index aaaf15c..622147a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -36,7 +36,7 @@ dependencies: uri: ^0.11.3 fimber: ^0.3.2 photo_view: ^0.7.0 - artemis: ^2.2.2 + artemis: ^3.0.0 # path: ../../github/artemis # git: # url: git://github.com/pd4d10/artemis.git