diff --git a/build.yaml b/build.yaml index 91a751c..c93c713 100644 --- a/build.yaml +++ b/build.yaml @@ -25,33 +25,8 @@ targets: options: schema_mapping: - schema: lib/github.schema.json - output: lib/graphql/github_user.dart - queries_glob: lib/graphql/github_user.graphql - resolve_type_field: __typename - add_query_prefix: true - - schema: lib/github.schema.json - output: lib/graphql/github_repository.dart - queries_glob: lib/graphql/github_repository.graphql - resolve_type_field: __typename - add_query_prefix: true - - schema: lib/github.schema.json - output: lib/graphql/github_object.dart - queries_glob: lib/graphql/github_object.graphql - resolve_type_field: __typename - add_query_prefix: true - - schema: lib/github.schema.json - output: lib/graphql/github_repositories.dart - queries_glob: lib/graphql/github_repositories.graphql - resolve_type_field: __typename - add_query_prefix: true - - schema: lib/github.schema.json - output: lib/graphql/github_users.dart - queries_glob: lib/graphql/github_users.graphql - resolve_type_field: __typename - add_query_prefix: true - - schema: lib/github.schema.json - output: lib/graphql/github_commits.dart - queries_glob: lib/graphql/github_commits.graphql + output: lib/graphql/gh.dart + queries_glob: lib/graphql/gh_*.graphql resolve_type_field: __typename add_query_prefix: true scalar_mapping: diff --git a/lib/graphql/gh.dart b/lib/graphql/gh.dart new file mode 100644 index 0000000..d9f0e3e --- /dev/null +++ b/lib/graphql/gh.dart @@ -0,0 +1,6341 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +import 'package:artemis/artemis.dart'; +import 'package:json_annotation/json_annotation.dart'; +import 'package:equatable/equatable.dart'; +import 'package:gql/ast.dart'; +part 'gh.g.dart'; + +@JsonSerializable(explicitToJson: true) +class GhRepo with EquatableMixin { + GhRepo(); + + factory GhRepo.fromJson(Map json) => _$GhRepoFromJson(json); + + GhRepoRepository repository; + + @override + List get props => [repository]; + Map toJson() => _$GhRepoToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRepository extends GhRepoPinnableItem + with EquatableMixin + implements + GhRepoNode, + GhRepoProjectOwner, + GhRepoRegistryPackageOwner, + GhRepoRegistryPackageSearch, + GhRepoSubscribable, + GhRepoStarrable, + GhRepoUniformResourceLocatable, + GhRepoRepositoryInfo { + GhRepoRepository(); + + factory GhRepoRepository.fromJson(Map json) => + _$GhRepoRepositoryFromJson(json); + + @override + GhRepoRepositoryOwner owner; + + @override + String name; + + @override + String description; + + @override + String homepageUrl; + + @override + bool isPrivate; + + @override + bool isFork; + + @override + GhRepoStargazerConnection stargazers; + + GhRepoRepositoryConnection forks; + + GhRepoLanguage primaryLanguage; + + @override + String id; + + int diskUsage; + + @override + bool hasIssuesEnabled; + + @override + String url; + + @override + bool viewerHasStarred; + + @override + String projectsUrl; + + GhRepoUserConnection watchers; + + GhRepoIssueConnection issues; + + GhRepoPullRequestConnection pullRequests; + + @override + GhRepoProjectConnection projects; + + GhRepoReleaseConnection releases; + + GhRepoLanguageConnection languages; + + GhRepoRef defaultBranchRef; + + GhRepoRef ref; + + GhRepoRefConnection refs; + + @override + GhRepoLicense licenseInfo; + + GhRepoRepositoryTopicConnection repositoryTopics; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [ + owner, + name, + description, + homepageUrl, + isPrivate, + isFork, + stargazers, + forks, + primaryLanguage, + id, + diskUsage, + hasIssuesEnabled, + url, + viewerHasStarred, + projectsUrl, + watchers, + issues, + pullRequests, + projects, + releases, + languages, + defaultBranchRef, + ref, + refs, + licenseInfo, + repositoryTopics, + resolveType + ]; + Map toJson() => _$GhRepoRepositoryToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRepositoryOwner with EquatableMixin { + GhRepoRepositoryOwner(); + + factory GhRepoRepositoryOwner.fromJson(Map json) => + _$GhRepoRepositoryOwnerFromJson(json); + + String login; + + String avatarUrl; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, avatarUrl, resolveType]; + Map toJson() => _$GhRepoRepositoryOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoStargazerConnection with EquatableMixin { + GhRepoStargazerConnection(); + + factory GhRepoStargazerConnection.fromJson(Map json) => + _$GhRepoStargazerConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhRepoStargazerConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRepositoryConnection with EquatableMixin { + GhRepoRepositoryConnection(); + + factory GhRepoRepositoryConnection.fromJson(Map json) => + _$GhRepoRepositoryConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhRepoRepositoryConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoLanguage with EquatableMixin implements GhRepoNode { + GhRepoLanguage(); + + factory GhRepoLanguage.fromJson(Map json) => + _$GhRepoLanguageFromJson(json); + + String color; + + String name; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [color, name, resolveType]; + Map toJson() => _$GhRepoLanguageToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoNode with EquatableMixin { + GhRepoNode(); + + factory GhRepoNode.fromJson(Map json) => + _$GhRepoNodeFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhRepoNodeToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoUserConnection with EquatableMixin { + GhRepoUserConnection(); + + factory GhRepoUserConnection.fromJson(Map json) => + _$GhRepoUserConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhRepoUserConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoIssueConnection with EquatableMixin { + GhRepoIssueConnection(); + + factory GhRepoIssueConnection.fromJson(Map json) => + _$GhRepoIssueConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhRepoIssueConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoPullRequestConnection with EquatableMixin { + GhRepoPullRequestConnection(); + + factory GhRepoPullRequestConnection.fromJson(Map json) => + _$GhRepoPullRequestConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhRepoPullRequestConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoProjectConnection with EquatableMixin { + GhRepoProjectConnection(); + + factory GhRepoProjectConnection.fromJson(Map json) => + _$GhRepoProjectConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhRepoProjectConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoReleaseConnection with EquatableMixin { + GhRepoReleaseConnection(); + + factory GhRepoReleaseConnection.fromJson(Map json) => + _$GhRepoReleaseConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhRepoReleaseConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoLanguageConnection with EquatableMixin { + GhRepoLanguageConnection(); + + factory GhRepoLanguageConnection.fromJson(Map json) => + _$GhRepoLanguageConnectionFromJson(json); + + int totalSize; + + List edges; + + @override + List get props => [totalSize, edges]; + Map toJson() => _$GhRepoLanguageConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoLanguageEdge with EquatableMixin { + GhRepoLanguageEdge(); + + factory GhRepoLanguageEdge.fromJson(Map json) => + _$GhRepoLanguageEdgeFromJson(json); + + int size; + + GhRepoLanguage node; + + @override + List get props => [size, node]; + Map toJson() => _$GhRepoLanguageEdgeToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRef with EquatableMixin implements GhRepoNode { + GhRepoRef(); + + factory GhRepoRef.fromJson(Map json) => + _$GhRepoRefFromJson(json); + + String name; + + GhRepoGitObject target; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [name, target, resolveType]; + Map toJson() => _$GhRepoRefToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoGitObject with EquatableMixin { + GhRepoGitObject(); + + factory GhRepoGitObject.fromJson(Map json) { + switch (json['__typename'].toString()) { + case 'Commit': + return GhRepoCommit.fromJson(json); + default: + } + return _$GhRepoGitObjectFromJson(json); + } + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() { + switch (resolveType) { + case 'Commit': + return (this as GhRepoCommit).toJson(); + default: + } + return _$GhRepoGitObjectToJson(this); + } +} + +@JsonSerializable(explicitToJson: true) +class GhRepoCommit extends GhRepoPullRequestTimelineItem + with EquatableMixin + implements + GhRepoNode, + GhRepoGitObject, + GhRepoSubscribable, + GhRepoUniformResourceLocatable { + GhRepoCommit(); + + factory GhRepoCommit.fromJson(Map json) => + _$GhRepoCommitFromJson(json); + + GhRepoCommitHistoryConnection history; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [history, resolveType]; + Map toJson() => _$GhRepoCommitToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoCommitHistoryConnection with EquatableMixin { + GhRepoCommitHistoryConnection(); + + factory GhRepoCommitHistoryConnection.fromJson(Map json) => + _$GhRepoCommitHistoryConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhRepoCommitHistoryConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoPullRequestTimelineItem with EquatableMixin { + GhRepoPullRequestTimelineItem(); + + factory GhRepoPullRequestTimelineItem.fromJson(Map json) => + _$GhRepoPullRequestTimelineItemFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhRepoPullRequestTimelineItemToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoSubscribable with EquatableMixin { + GhRepoSubscribable(); + + factory GhRepoSubscribable.fromJson(Map json) => + _$GhRepoSubscribableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhRepoSubscribableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoUniformResourceLocatable with EquatableMixin { + GhRepoUniformResourceLocatable(); + + factory GhRepoUniformResourceLocatable.fromJson(Map json) => + _$GhRepoUniformResourceLocatableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhRepoUniformResourceLocatableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRefConnection with EquatableMixin { + GhRepoRefConnection(); + + factory GhRepoRefConnection.fromJson(Map json) => + _$GhRepoRefConnectionFromJson(json); + + int totalCount; + + List nodes; + + @override + List get props => [totalCount, nodes]; + Map toJson() => _$GhRepoRefConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoLicense with EquatableMixin implements GhRepoNode { + GhRepoLicense(); + + factory GhRepoLicense.fromJson(Map json) => + _$GhRepoLicenseFromJson(json); + + String name; + + String spdxId; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [name, spdxId, resolveType]; + Map toJson() => _$GhRepoLicenseToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRepositoryTopicConnection with EquatableMixin { + GhRepoRepositoryTopicConnection(); + + factory GhRepoRepositoryTopicConnection.fromJson(Map json) => + _$GhRepoRepositoryTopicConnectionFromJson(json); + + List nodes; + + @override + List get props => [nodes]; + Map toJson() => + _$GhRepoRepositoryTopicConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRepositoryTopic + with EquatableMixin + implements GhRepoNode, GhRepoUniformResourceLocatable { + GhRepoRepositoryTopic(); + + factory GhRepoRepositoryTopic.fromJson(Map json) => + _$GhRepoRepositoryTopicFromJson(json); + + @override + String url; + + GhRepoTopic topic; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [url, topic, resolveType]; + Map toJson() => _$GhRepoRepositoryTopicToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoTopic with EquatableMixin implements GhRepoNode, GhRepoStarrable { + GhRepoTopic(); + + factory GhRepoTopic.fromJson(Map json) => + _$GhRepoTopicFromJson(json); + + String name; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [name, resolveType]; + Map toJson() => _$GhRepoTopicToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoStarrable with EquatableMixin { + GhRepoStarrable(); + + factory GhRepoStarrable.fromJson(Map json) => + _$GhRepoStarrableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhRepoStarrableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoPinnableItem with EquatableMixin { + GhRepoPinnableItem(); + + factory GhRepoPinnableItem.fromJson(Map json) => + _$GhRepoPinnableItemFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhRepoPinnableItemToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoProjectOwner with EquatableMixin { + GhRepoProjectOwner(); + + factory GhRepoProjectOwner.fromJson(Map json) => + _$GhRepoProjectOwnerFromJson(json); + + String id; + + String projectsUrl; + + GhRepoProjectConnection projects; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [id, projectsUrl, projects, resolveType]; + Map toJson() => _$GhRepoProjectOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRegistryPackageOwner with EquatableMixin { + GhRepoRegistryPackageOwner(); + + factory GhRepoRegistryPackageOwner.fromJson(Map json) => + _$GhRepoRegistryPackageOwnerFromJson(json); + + String id; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [id, resolveType]; + Map toJson() => _$GhRepoRegistryPackageOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRegistryPackageSearch with EquatableMixin { + GhRepoRegistryPackageSearch(); + + factory GhRepoRegistryPackageSearch.fromJson(Map json) => + _$GhRepoRegistryPackageSearchFromJson(json); + + String id; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [id, resolveType]; + Map toJson() => _$GhRepoRegistryPackageSearchToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoRepositoryInfo with EquatableMixin { + GhRepoRepositoryInfo(); + + factory GhRepoRepositoryInfo.fromJson(Map json) => + _$GhRepoRepositoryInfoFromJson(json); + + GhRepoRepositoryOwner owner; + + String name; + + String description; + + String homepageUrl; + + bool isPrivate; + + bool isFork; + + bool hasIssuesEnabled; + + String url; + + GhRepoLicense licenseInfo; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [ + owner, + name, + description, + homepageUrl, + isPrivate, + isFork, + hasIssuesEnabled, + url, + licenseInfo, + resolveType + ]; + Map toJson() => _$GhRepoRepositoryInfoToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhRepoArguments extends JsonSerializable with EquatableMixin { + GhRepoArguments({this.owner, this.name, this.branchSpecified, this.branch}); + + factory GhRepoArguments.fromJson(Map json) => + _$GhRepoArgumentsFromJson(json); + + final String owner; + + final String name; + + final bool branchSpecified; + + final String branch; + + @override + List get props => [owner, name, branchSpecified, branch]; + Map toJson() => _$GhRepoArgumentsToJson(this); +} + +class GhRepoQuery extends GraphQLQuery { + GhRepoQuery({this.variables}); + + @override + final DocumentNode document = DocumentNode(definitions: [ + OperationDefinitionNode( + type: OperationType.query, + name: NameNode(value: 'GhRepo'), + variableDefinitions: [ + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'owner')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'name')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'branchSpecified')), + type: NamedTypeNode( + name: NameNode(value: 'Boolean'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'branch')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'repository'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'owner'), + value: VariableNode(name: NameNode(value: 'owner'))), + ArgumentNode( + name: NameNode(value: 'name'), + value: VariableNode(name: NameNode(value: 'name'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'owner'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'homepageUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isPrivate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isFork'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'stargazers'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'forks'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'primaryLanguage'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'id'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'diskUsage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'hasIssuesEnabled'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'viewerHasStarred'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'projectsUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'watchers'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'issues'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'states'), + value: EnumValueNode(name: NameNode(value: 'OPEN'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'pullRequests'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'states'), + value: EnumValueNode(name: NameNode(value: 'OPEN'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'projects'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'releases'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'languages'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '10')), + ArgumentNode( + name: NameNode(value: 'orderBy'), + value: ObjectValueNode(fields: [ + ObjectFieldNode( + name: NameNode(value: 'field'), + value: EnumValueNode( + name: NameNode(value: 'SIZE'))), + ObjectFieldNode( + name: NameNode(value: 'direction'), + value: EnumValueNode( + name: NameNode(value: 'DESC'))) + ])) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalSize'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'edges'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'size'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'node'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'defaultBranchRef'), + alias: null, + arguments: [], + directives: [ + DirectiveNode(name: NameNode(value: 'skip'), arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'branchSpecified'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'target'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: NameNode(value: 'Commit'), + isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'history'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'ref'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'qualifiedName'), + value: VariableNode(name: NameNode(value: 'branch'))) + ], + directives: [ + DirectiveNode( + name: NameNode(value: 'include'), + arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'branchSpecified'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'target'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: NameNode(value: 'Commit'), + isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'history'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'refs'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '100')), + ArgumentNode( + name: NameNode(value: 'refPrefix'), + value: StringValueNode( + value: 'refs/heads/', isBlock: false)) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])), + FieldNode( + name: NameNode(value: 'licenseInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'spdxId'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'repositoryTopics'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '10')) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'topic'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])) + ])) + ]); + + @override + final String operationName = 'GhRepo'; + + @override + final GhRepoArguments variables; + + @override + List get props => [document, operationName, variables]; + @override + GhRepo parse(Map json) => GhRepo.fromJson(json); +} + +@JsonSerializable(explicitToJson: true) +class GhUsers with EquatableMixin { + GhUsers(); + + factory GhUsers.fromJson(Map json) => + _$GhUsersFromJson(json); + + GhUsersUser user; + + GhUsersOrganization organization; + + GhUsersRepository repository; + + @override + List get props => [user, organization, repository]; + Map toJson() => _$GhUsersToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersUser extends GhUsersAuditEntryActor + with EquatableMixin + implements + GhUsersNode, + GhUsersActor, + GhUsersRegistryPackageOwner, + GhUsersRegistryPackageSearch, + GhUsersProjectOwner, + GhUsersRepositoryOwner, + GhUsersUniformResourceLocatable, + GhUsersProfileOwner, + GhUsersSponsorable { + GhUsersUser(); + + factory GhUsersUser.fromJson(Map json) => + _$GhUsersUserFromJson(json); + + @override + String login; + + @override + String name; + + @override + String avatarUrl; + + String company; + + @override + String location; + + DateTime createdAt; + + GhUsersFollowerConnection followers; + + GhUsersFollowingConnection following; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [ + login, + name, + avatarUrl, + company, + location, + createdAt, + followers, + following, + resolveType + ]; + Map toJson() => _$GhUsersUserToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersFollowerConnection with EquatableMixin { + GhUsersFollowerConnection(); + + factory GhUsersFollowerConnection.fromJson(Map json) => + _$GhUsersFollowerConnectionFromJson(json); + + GhUsersPageInfo pageInfo; + + List nodes; + + @override + List get props => [pageInfo, nodes]; + Map toJson() => _$GhUsersFollowerConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersPageInfo with EquatableMixin { + GhUsersPageInfo(); + + factory GhUsersPageInfo.fromJson(Map json) => + _$GhUsersPageInfoFromJson(json); + + bool hasNextPage; + + String endCursor; + + @override + List get props => [hasNextPage, endCursor]; + Map toJson() => _$GhUsersPageInfoToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersAuditEntryActor with EquatableMixin { + GhUsersAuditEntryActor(); + + factory GhUsersAuditEntryActor.fromJson(Map json) => + _$GhUsersAuditEntryActorFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhUsersAuditEntryActorToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersNode with EquatableMixin { + GhUsersNode(); + + factory GhUsersNode.fromJson(Map json) => + _$GhUsersNodeFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUsersNodeToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersActor with EquatableMixin { + GhUsersActor(); + + factory GhUsersActor.fromJson(Map json) => + _$GhUsersActorFromJson(json); + + String login; + + String avatarUrl; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, avatarUrl, resolveType]; + Map toJson() => _$GhUsersActorToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersRegistryPackageOwner with EquatableMixin { + GhUsersRegistryPackageOwner(); + + factory GhUsersRegistryPackageOwner.fromJson(Map json) => + _$GhUsersRegistryPackageOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUsersRegistryPackageOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersRegistryPackageSearch with EquatableMixin { + GhUsersRegistryPackageSearch(); + + factory GhUsersRegistryPackageSearch.fromJson(Map json) => + _$GhUsersRegistryPackageSearchFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUsersRegistryPackageSearchToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersProjectOwner with EquatableMixin { + GhUsersProjectOwner(); + + factory GhUsersProjectOwner.fromJson(Map json) => + _$GhUsersProjectOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUsersProjectOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersRepositoryOwner with EquatableMixin { + GhUsersRepositoryOwner(); + + factory GhUsersRepositoryOwner.fromJson(Map json) => + _$GhUsersRepositoryOwnerFromJson(json); + + String login; + + String avatarUrl; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, avatarUrl, resolveType]; + Map toJson() => _$GhUsersRepositoryOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersUniformResourceLocatable with EquatableMixin { + GhUsersUniformResourceLocatable(); + + factory GhUsersUniformResourceLocatable.fromJson(Map json) => + _$GhUsersUniformResourceLocatableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => + _$GhUsersUniformResourceLocatableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersProfileOwner with EquatableMixin { + GhUsersProfileOwner(); + + factory GhUsersProfileOwner.fromJson(Map json) => + _$GhUsersProfileOwnerFromJson(json); + + String login; + + String name; + + String location; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, name, location, resolveType]; + Map toJson() => _$GhUsersProfileOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersSponsorable with EquatableMixin { + GhUsersSponsorable(); + + factory GhUsersSponsorable.fromJson(Map json) => + _$GhUsersSponsorableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUsersSponsorableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersFollowingConnection with EquatableMixin { + GhUsersFollowingConnection(); + + factory GhUsersFollowingConnection.fromJson(Map json) => + _$GhUsersFollowingConnectionFromJson(json); + + GhUsersPageInfo pageInfo; + + List nodes; + + @override + List get props => [pageInfo, nodes]; + Map toJson() => _$GhUsersFollowingConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersOrganization extends GhUsersAuditEntryActor + with EquatableMixin + implements + GhUsersNode, + GhUsersActor, + GhUsersRegistryPackageOwner, + GhUsersRegistryPackageSearch, + GhUsersProjectOwner, + GhUsersRepositoryOwner, + GhUsersUniformResourceLocatable, + GhUsersMemberStatusable, + GhUsersProfileOwner, + GhUsersSponsorable { + GhUsersOrganization(); + + factory GhUsersOrganization.fromJson(Map json) => + _$GhUsersOrganizationFromJson(json); + + @override + String login; + + @override + String name; + + @override + String avatarUrl; + + @override + String location; + + GhUsersOrganizationMemberConnection membersWithRole; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => + [login, name, avatarUrl, location, membersWithRole, resolveType]; + Map toJson() => _$GhUsersOrganizationToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersOrganizationMemberConnection with EquatableMixin { + GhUsersOrganizationMemberConnection(); + + factory GhUsersOrganizationMemberConnection.fromJson( + Map json) => + _$GhUsersOrganizationMemberConnectionFromJson(json); + + GhUsersPageInfo pageInfo; + + List nodes; + + @override + List get props => [pageInfo, nodes]; + Map toJson() => + _$GhUsersOrganizationMemberConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersMemberStatusable with EquatableMixin { + GhUsersMemberStatusable(); + + factory GhUsersMemberStatusable.fromJson(Map json) => + _$GhUsersMemberStatusableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUsersMemberStatusableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersRepository extends GhUsersPinnableItem + with EquatableMixin + implements + GhUsersNode, + GhUsersProjectOwner, + GhUsersRegistryPackageOwner, + GhUsersRegistryPackageSearch, + GhUsersSubscribable, + GhUsersStarrable, + GhUsersUniformResourceLocatable, + GhUsersRepositoryInfo { + GhUsersRepository(); + + factory GhUsersRepository.fromJson(Map json) => + _$GhUsersRepositoryFromJson(json); + + GhUsersUserConnection watchers; + + @override + GhUsersStargazerConnection stargazers; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [watchers, stargazers, resolveType]; + Map toJson() => _$GhUsersRepositoryToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersUserConnection with EquatableMixin { + GhUsersUserConnection(); + + factory GhUsersUserConnection.fromJson(Map json) => + _$GhUsersUserConnectionFromJson(json); + + GhUsersPageInfo pageInfo; + + List nodes; + + @override + List get props => [pageInfo, nodes]; + Map toJson() => _$GhUsersUserConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersStargazerConnection with EquatableMixin { + GhUsersStargazerConnection(); + + factory GhUsersStargazerConnection.fromJson(Map json) => + _$GhUsersStargazerConnectionFromJson(json); + + GhUsersPageInfo pageInfo; + + List nodes; + + @override + List get props => [pageInfo, nodes]; + Map toJson() => _$GhUsersStargazerConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersPinnableItem with EquatableMixin { + GhUsersPinnableItem(); + + factory GhUsersPinnableItem.fromJson(Map json) => + _$GhUsersPinnableItemFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhUsersPinnableItemToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersSubscribable with EquatableMixin { + GhUsersSubscribable(); + + factory GhUsersSubscribable.fromJson(Map json) => + _$GhUsersSubscribableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUsersSubscribableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersStarrable with EquatableMixin { + GhUsersStarrable(); + + factory GhUsersStarrable.fromJson(Map json) => + _$GhUsersStarrableFromJson(json); + + GhUsersStargazerConnection stargazers; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [stargazers, resolveType]; + Map toJson() => _$GhUsersStarrableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersRepositoryInfo with EquatableMixin { + GhUsersRepositoryInfo(); + + factory GhUsersRepositoryInfo.fromJson(Map json) => + _$GhUsersRepositoryInfoFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUsersRepositoryInfoToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUsersArguments extends JsonSerializable with EquatableMixin { + GhUsersArguments( + {this.login, + this.repoName, + this.after, + this.isFollowers, + this.isFollowing, + this.isMember, + this.isStar, + this.isWatch}); + + factory GhUsersArguments.fromJson(Map json) => + _$GhUsersArgumentsFromJson(json); + + final String login; + + final String repoName; + + final String after; + + final bool isFollowers; + + final bool isFollowing; + + final bool isMember; + + final bool isStar; + + final bool isWatch; + + @override + List get props => [ + login, + repoName, + after, + isFollowers, + isFollowing, + isMember, + isStar, + isWatch + ]; + Map toJson() => _$GhUsersArgumentsToJson(this); +} + +class GhUsersQuery extends GraphQLQuery { + GhUsersQuery({this.variables}); + + @override + final DocumentNode document = DocumentNode(definitions: [ + OperationDefinitionNode( + type: OperationType.query, + name: NameNode(value: 'GhUsers'), + variableDefinitions: [ + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'login')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'repoName')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'after')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: false), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'isFollowers')), + type: NamedTypeNode( + name: NameNode(value: 'Boolean'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'isFollowing')), + type: NamedTypeNode( + name: NameNode(value: 'Boolean'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'isMember')), + type: NamedTypeNode( + name: NameNode(value: 'Boolean'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'isStar')), + type: NamedTypeNode( + name: NameNode(value: 'Boolean'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'isWatch')), + type: NamedTypeNode( + name: NameNode(value: 'Boolean'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'user'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'login'), + value: VariableNode(name: NameNode(value: 'login'))) + ], + directives: [ + DirectiveNode(name: NameNode(value: 'skip'), arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode(name: NameNode(value: 'isMember'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'company'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'followers'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '30')), + ArgumentNode( + name: NameNode(value: 'after'), + value: VariableNode(name: NameNode(value: 'after'))) + ], + directives: [ + DirectiveNode( + name: NameNode(value: 'include'), + arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'isFollowers'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'company'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])), + FieldNode( + name: NameNode(value: 'following'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '30')), + ArgumentNode( + name: NameNode(value: 'after'), + value: VariableNode(name: NameNode(value: 'after'))) + ], + directives: [ + DirectiveNode( + name: NameNode(value: 'include'), + arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'isFollowing'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'company'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'organization'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'login'), + value: VariableNode(name: NameNode(value: 'login'))) + ], + directives: [ + DirectiveNode(name: NameNode(value: 'include'), arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode(name: NameNode(value: 'isMember'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'membersWithRole'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '30')), + ArgumentNode( + name: NameNode(value: 'after'), + value: VariableNode(name: NameNode(value: 'after'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'company'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'repository'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'owner'), + value: VariableNode(name: NameNode(value: 'login'))), + ArgumentNode( + name: NameNode(value: 'name'), + value: VariableNode(name: NameNode(value: 'repoName'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'watchers'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '30')), + ArgumentNode( + name: NameNode(value: 'after'), + value: VariableNode(name: NameNode(value: 'after'))) + ], + directives: [ + DirectiveNode( + name: NameNode(value: 'include'), + arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'isWatch'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'company'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])), + FieldNode( + name: NameNode(value: 'stargazers'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '30')), + ArgumentNode( + name: NameNode(value: 'after'), + value: VariableNode(name: NameNode(value: 'after'))) + ], + directives: [ + DirectiveNode( + name: NameNode(value: 'include'), + arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'isStar'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'company'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])) + ]); + + @override + final String operationName = 'GhUsers'; + + @override + final GhUsersArguments variables; + + @override + List get props => [document, operationName, variables]; + @override + GhUsers parse(Map json) => GhUsers.fromJson(json); +} + +@JsonSerializable(explicitToJson: true) +class GhRepos with EquatableMixin { + GhRepos(); + + factory GhRepos.fromJson(Map json) => + _$GhReposFromJson(json); + + GhReposRepositoryOwner repositoryOwner; + + @override + List get props => [repositoryOwner]; + Map toJson() => _$GhReposToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposRepositoryOwner with EquatableMixin { + GhReposRepositoryOwner(); + + factory GhReposRepositoryOwner.fromJson(Map json) { + switch (json['__typename'].toString()) { + case 'User': + return GhReposUser.fromJson(json); + case 'Organization': + return GhReposOrganization.fromJson(json); + default: + } + return _$GhReposRepositoryOwnerFromJson(json); + } + + String login; + + String avatarUrl; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, avatarUrl, resolveType]; + Map toJson() { + switch (resolveType) { + case 'User': + return (this as GhReposUser).toJson(); + case 'Organization': + return (this as GhReposOrganization).toJson(); + default: + } + return _$GhReposRepositoryOwnerToJson(this); + } +} + +@JsonSerializable(explicitToJson: true) +class GhReposUser extends GhReposAuditEntryActor + with EquatableMixin + implements + GhReposNode, + GhReposActor, + GhReposRegistryPackageOwner, + GhReposRegistryPackageSearch, + GhReposProjectOwner, + GhReposRepositoryOwner, + GhReposUniformResourceLocatable, + GhReposProfileOwner, + GhReposSponsorable { + GhReposUser(); + + factory GhReposUser.fromJson(Map json) => + _$GhReposUserFromJson(json); + + GhReposRepositoryConnection repositories; + + GhReposStarredRepositoryConnection starredRepositories; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + String login; + + @override + String avatarUrl; + + @override + List get props => + [repositories, starredRepositories, resolveType, login, avatarUrl]; + Map toJson() => _$GhReposUserToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposRepositoryConnection with EquatableMixin { + GhReposRepositoryConnection(); + + factory GhReposRepositoryConnection.fromJson(Map json) => + _$GhReposRepositoryConnectionFromJson(json); + + int totalCount; + + GhReposPageInfo pageInfo; + + List nodes; + + @override + List get props => [totalCount, pageInfo, nodes]; + Map toJson() => _$GhReposRepositoryConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposPageInfo with EquatableMixin { + GhReposPageInfo(); + + factory GhReposPageInfo.fromJson(Map json) => + _$GhReposPageInfoFromJson(json); + + bool hasNextPage; + + String endCursor; + + @override + List get props => [hasNextPage, endCursor]; + Map toJson() => _$GhReposPageInfoToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposRepository extends GhReposPinnableItem + with EquatableMixin + implements + GhReposNode, + GhReposProjectOwner, + GhReposRegistryPackageOwner, + GhReposRegistryPackageSearch, + GhReposSubscribable, + GhReposStarrable, + GhReposUniformResourceLocatable, + GhReposRepositoryInfo { + GhReposRepository(); + + factory GhReposRepository.fromJson(Map json) => + _$GhReposRepositoryFromJson(json); + + @override + GhReposRepositoryOwner owner; + + @override + String name; + + @override + String description; + + @override + bool isPrivate; + + @override + bool isFork; + + @override + GhReposStargazerConnection stargazers; + + GhReposRepositoryConnection forks; + + GhReposLanguage primaryLanguage; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [ + owner, + name, + description, + isPrivate, + isFork, + stargazers, + forks, + primaryLanguage, + resolveType + ]; + Map toJson() => _$GhReposRepositoryToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposStargazerConnection with EquatableMixin { + GhReposStargazerConnection(); + + factory GhReposStargazerConnection.fromJson(Map json) => + _$GhReposStargazerConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhReposStargazerConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposLanguage with EquatableMixin implements GhReposNode { + GhReposLanguage(); + + factory GhReposLanguage.fromJson(Map json) => + _$GhReposLanguageFromJson(json); + + String color; + + String name; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [color, name, resolveType]; + Map toJson() => _$GhReposLanguageToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposNode with EquatableMixin { + GhReposNode(); + + factory GhReposNode.fromJson(Map json) => + _$GhReposNodeFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhReposNodeToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposPinnableItem with EquatableMixin { + GhReposPinnableItem(); + + factory GhReposPinnableItem.fromJson(Map json) => + _$GhReposPinnableItemFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhReposPinnableItemToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposProjectOwner with EquatableMixin { + GhReposProjectOwner(); + + factory GhReposProjectOwner.fromJson(Map json) => + _$GhReposProjectOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhReposProjectOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposRegistryPackageOwner with EquatableMixin { + GhReposRegistryPackageOwner(); + + factory GhReposRegistryPackageOwner.fromJson(Map json) => + _$GhReposRegistryPackageOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhReposRegistryPackageOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposRegistryPackageSearch with EquatableMixin { + GhReposRegistryPackageSearch(); + + factory GhReposRegistryPackageSearch.fromJson(Map json) => + _$GhReposRegistryPackageSearchFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhReposRegistryPackageSearchToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposSubscribable with EquatableMixin { + GhReposSubscribable(); + + factory GhReposSubscribable.fromJson(Map json) => + _$GhReposSubscribableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhReposSubscribableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposStarrable with EquatableMixin { + GhReposStarrable(); + + factory GhReposStarrable.fromJson(Map json) => + _$GhReposStarrableFromJson(json); + + GhReposStargazerConnection stargazers; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [stargazers, resolveType]; + Map toJson() => _$GhReposStarrableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposUniformResourceLocatable with EquatableMixin { + GhReposUniformResourceLocatable(); + + factory GhReposUniformResourceLocatable.fromJson(Map json) => + _$GhReposUniformResourceLocatableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => + _$GhReposUniformResourceLocatableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposRepositoryInfo with EquatableMixin { + GhReposRepositoryInfo(); + + factory GhReposRepositoryInfo.fromJson(Map json) => + _$GhReposRepositoryInfoFromJson(json); + + GhReposRepositoryOwner owner; + + String name; + + String description; + + bool isPrivate; + + bool isFork; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => + [owner, name, description, isPrivate, isFork, resolveType]; + Map toJson() => _$GhReposRepositoryInfoToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposStarredRepositoryConnection with EquatableMixin { + GhReposStarredRepositoryConnection(); + + factory GhReposStarredRepositoryConnection.fromJson( + Map json) => + _$GhReposStarredRepositoryConnectionFromJson(json); + + GhReposPageInfo pageInfo; + + List nodes; + + @override + List get props => [pageInfo, nodes]; + Map toJson() => + _$GhReposStarredRepositoryConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposAuditEntryActor with EquatableMixin { + GhReposAuditEntryActor(); + + factory GhReposAuditEntryActor.fromJson(Map json) => + _$GhReposAuditEntryActorFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhReposAuditEntryActorToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposActor with EquatableMixin { + GhReposActor(); + + factory GhReposActor.fromJson(Map json) => + _$GhReposActorFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhReposActorToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposProfileOwner with EquatableMixin { + GhReposProfileOwner(); + + factory GhReposProfileOwner.fromJson(Map json) => + _$GhReposProfileOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhReposProfileOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposSponsorable with EquatableMixin { + GhReposSponsorable(); + + factory GhReposSponsorable.fromJson(Map json) => + _$GhReposSponsorableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhReposSponsorableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposOrganization extends GhReposAuditEntryActor + with EquatableMixin + implements + GhReposNode, + GhReposActor, + GhReposRegistryPackageOwner, + GhReposRegistryPackageSearch, + GhReposProjectOwner, + GhReposRepositoryOwner, + GhReposUniformResourceLocatable, + GhReposMemberStatusable, + GhReposProfileOwner, + GhReposSponsorable { + GhReposOrganization(); + + factory GhReposOrganization.fromJson(Map json) => + _$GhReposOrganizationFromJson(json); + + GhReposPinnableItemConnection pinnableItems; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + String login; + + @override + String avatarUrl; + + @override + List get props => [pinnableItems, resolveType, login, avatarUrl]; + Map toJson() => _$GhReposOrganizationToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposPinnableItemConnection with EquatableMixin { + GhReposPinnableItemConnection(); + + factory GhReposPinnableItemConnection.fromJson(Map json) => + _$GhReposPinnableItemConnectionFromJson(json); + + GhReposPageInfo pageInfo; + + List nodes; + + @override + List get props => [pageInfo, nodes]; + Map toJson() => _$GhReposPinnableItemConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposMemberStatusable with EquatableMixin { + GhReposMemberStatusable(); + + factory GhReposMemberStatusable.fromJson(Map json) => + _$GhReposMemberStatusableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhReposMemberStatusableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhReposArguments extends JsonSerializable with EquatableMixin { + GhReposArguments({this.owner, this.after, this.isStar}); + + factory GhReposArguments.fromJson(Map json) => + _$GhReposArgumentsFromJson(json); + + final String owner; + + final String after; + + final bool isStar; + + @override + List get props => [owner, after, isStar]; + Map toJson() => _$GhReposArgumentsToJson(this); +} + +class GhReposQuery extends GraphQLQuery { + GhReposQuery({this.variables}); + + @override + final DocumentNode document = DocumentNode(definitions: [ + OperationDefinitionNode( + type: OperationType.query, + name: NameNode(value: 'GhRepos'), + variableDefinitions: [ + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'owner')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'after')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: false), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'isStar')), + type: NamedTypeNode( + name: NameNode(value: 'Boolean'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'repositoryOwner'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'login'), + value: VariableNode(name: NameNode(value: 'owner'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: NameNode(value: 'User'), isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'repositories'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '30')), + ArgumentNode( + name: NameNode(value: 'after'), + value: VariableNode( + name: NameNode(value: 'after'))), + ArgumentNode( + name: NameNode(value: 'orderBy'), + value: ObjectValueNode(fields: [ + ObjectFieldNode( + name: NameNode(value: 'field'), + value: EnumValueNode( + name: NameNode(value: 'UPDATED_AT'))), + ObjectFieldNode( + name: NameNode(value: 'direction'), + value: EnumValueNode( + name: NameNode(value: 'DESC'))) + ])) + ], + directives: [ + DirectiveNode( + name: NameNode(value: 'skip'), + arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'isStar'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'owner'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isPrivate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isFork'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'stargazers'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'forks'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'primaryLanguage'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'starredRepositories'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '30')), + ArgumentNode( + name: NameNode(value: 'after'), + value: VariableNode( + name: NameNode(value: 'after'))), + ArgumentNode( + name: NameNode(value: 'orderBy'), + value: ObjectValueNode(fields: [ + ObjectFieldNode( + name: NameNode(value: 'field'), + value: EnumValueNode( + name: NameNode(value: 'STARRED_AT'))), + ObjectFieldNode( + name: NameNode(value: 'direction'), + value: EnumValueNode( + name: NameNode(value: 'DESC'))) + ])) + ], + directives: [ + DirectiveNode( + name: NameNode(value: 'include'), + arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'isStar'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'owner'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isPrivate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isFork'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'stargazers'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'forks'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'primaryLanguage'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: NameNode(value: 'Organization'), + isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'pinnableItems'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '30')), + ArgumentNode( + name: NameNode(value: 'after'), + value: VariableNode( + name: NameNode(value: 'after'))), + ArgumentNode( + name: NameNode(value: 'types'), + value: ListValueNode(values: [ + EnumValueNode( + name: NameNode(value: 'REPOSITORY')) + ])) + ], + directives: [ + DirectiveNode( + name: NameNode(value: 'skip'), + arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'isStar'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: + NameNode(value: 'Repository'), + isNonNull: false)), + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'owner'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode( + value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: + NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isPrivate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isFork'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'stargazers'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode( + value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'forks'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode( + value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode( + value: 'primaryLanguage'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])) + ])) + ])) + ])) + ]); + + @override + final String operationName = 'GhRepos'; + + @override + final GhReposArguments variables; + + @override + List get props => [document, operationName, variables]; + @override + GhRepos parse(Map json) => GhRepos.fromJson(json); +} + +@JsonSerializable(explicitToJson: true) +class GhUser with EquatableMixin { + GhUser(); + + factory GhUser.fromJson(Map json) => _$GhUserFromJson(json); + + GhUserRepositoryOwner repositoryOwner; + + GhUserUser viewer; + + @override + List get props => [repositoryOwner, viewer]; + Map toJson() => _$GhUserToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserRepositoryOwner with EquatableMixin { + GhUserRepositoryOwner(); + + factory GhUserRepositoryOwner.fromJson(Map json) { + switch (json['__typename'].toString()) { + case 'User': + return GhUserUser.fromJson(json); + case 'Organization': + return GhUserOrganization.fromJson(json); + default: + } + return _$GhUserRepositoryOwnerFromJson(json); + } + + String login; + + String avatarUrl; + + String url; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, avatarUrl, url, resolveType]; + Map toJson() { + switch (resolveType) { + case 'User': + return (this as GhUserUser).toJson(); + case 'Organization': + return (this as GhUserOrganization).toJson(); + default: + } + return _$GhUserRepositoryOwnerToJson(this); + } +} + +@JsonSerializable(explicitToJson: true) +class GhUserUser extends GhUserAuditEntryActor + with EquatableMixin + implements + GhUserNode, + GhUserActor, + GhUserRegistryPackageOwner, + GhUserRegistryPackageSearch, + GhUserProjectOwner, + GhUserRepositoryOwner, + GhUserUniformResourceLocatable, + GhUserProfileOwner, + GhUserSponsorable { + GhUserUser(); + + factory GhUserUser.fromJson(Map json) => + _$GhUserUserFromJson(json); + + String name; + + String bio; + + String company; + + String location; + + String email; + + DateTime createdAt; + + String websiteUrl; + + GhUserStarredRepositoryConnection starredRepositories; + + GhUserFollowerConnection followers; + + GhUserFollowingConnection following; + + GhUserContributionsCollection contributionsCollection; + + GhUserRepositoryConnection repositories; + + GhUserPinnableItemConnection pinnedItems; + + bool viewerCanFollow; + + bool viewerIsFollowing; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + String login; + + @override + String avatarUrl; + + @override + String url; + + @override + List get props => [ + name, + bio, + company, + location, + email, + createdAt, + websiteUrl, + starredRepositories, + followers, + following, + contributionsCollection, + repositories, + pinnedItems, + viewerCanFollow, + viewerIsFollowing, + resolveType, + login, + avatarUrl, + url + ]; + Map toJson() => _$GhUserUserToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserStarredRepositoryConnection with EquatableMixin { + GhUserStarredRepositoryConnection(); + + factory GhUserStarredRepositoryConnection.fromJson( + Map json) => + _$GhUserStarredRepositoryConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => + _$GhUserStarredRepositoryConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserFollowerConnection with EquatableMixin { + GhUserFollowerConnection(); + + factory GhUserFollowerConnection.fromJson(Map json) => + _$GhUserFollowerConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhUserFollowerConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserFollowingConnection with EquatableMixin { + GhUserFollowingConnection(); + + factory GhUserFollowingConnection.fromJson(Map json) => + _$GhUserFollowingConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhUserFollowingConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserContributionsCollection with EquatableMixin { + GhUserContributionsCollection(); + + factory GhUserContributionsCollection.fromJson(Map json) => + _$GhUserContributionsCollectionFromJson(json); + + GhUserContributionCalendar contributionCalendar; + + @override + List get props => [contributionCalendar]; + Map toJson() => _$GhUserContributionsCollectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserContributionCalendar with EquatableMixin { + GhUserContributionCalendar(); + + factory GhUserContributionCalendar.fromJson(Map json) => + _$GhUserContributionCalendarFromJson(json); + + List weeks; + + @override + List get props => [weeks]; + Map toJson() => _$GhUserContributionCalendarToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserContributionCalendarWeek with EquatableMixin { + GhUserContributionCalendarWeek(); + + factory GhUserContributionCalendarWeek.fromJson(Map json) => + _$GhUserContributionCalendarWeekFromJson(json); + + List contributionDays; + + @override + List get props => [contributionDays]; + Map toJson() => _$GhUserContributionCalendarWeekToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserContributionCalendarDay with EquatableMixin { + GhUserContributionCalendarDay(); + + factory GhUserContributionCalendarDay.fromJson(Map json) => + _$GhUserContributionCalendarDayFromJson(json); + + String color; + + @override + List get props => [color]; + Map toJson() => _$GhUserContributionCalendarDayToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserRepositoryConnection with EquatableMixin { + GhUserRepositoryConnection(); + + factory GhUserRepositoryConnection.fromJson(Map json) => + _$GhUserRepositoryConnectionFromJson(json); + + int totalCount; + + List nodes; + + @override + List get props => [totalCount, nodes]; + Map toJson() => _$GhUserRepositoryConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserRepository extends GhUserPinnableItem + with EquatableMixin + implements + GhUserNode, + GhUserProjectOwner, + GhUserRegistryPackageOwner, + GhUserRegistryPackageSearch, + GhUserSubscribable, + GhUserStarrable, + GhUserUniformResourceLocatable, + GhUserRepositoryInfo { + GhUserRepository(); + + factory GhUserRepository.fromJson(Map json) => + _$GhUserRepositoryFromJson(json); + + @override + GhUserRepositoryOwner owner; + + @override + String name; + + @override + String description; + + @override + bool isPrivate; + + @override + bool isFork; + + @override + GhUserStargazerConnection stargazers; + + GhUserRepositoryConnection forks; + + GhUserLanguage primaryLanguage; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [ + owner, + name, + description, + isPrivate, + isFork, + stargazers, + forks, + primaryLanguage, + resolveType + ]; + Map toJson() => _$GhUserRepositoryToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserStargazerConnection with EquatableMixin { + GhUserStargazerConnection(); + + factory GhUserStargazerConnection.fromJson(Map json) => + _$GhUserStargazerConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => _$GhUserStargazerConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserLanguage with EquatableMixin implements GhUserNode { + GhUserLanguage(); + + factory GhUserLanguage.fromJson(Map json) => + _$GhUserLanguageFromJson(json); + + String color; + + String name; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [color, name, resolveType]; + Map toJson() => _$GhUserLanguageToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserNode with EquatableMixin { + GhUserNode(); + + factory GhUserNode.fromJson(Map json) => + _$GhUserNodeFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUserNodeToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserPinnableItem with EquatableMixin { + GhUserPinnableItem(); + + factory GhUserPinnableItem.fromJson(Map json) => + _$GhUserPinnableItemFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhUserPinnableItemToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserProjectOwner with EquatableMixin { + GhUserProjectOwner(); + + factory GhUserProjectOwner.fromJson(Map json) => + _$GhUserProjectOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUserProjectOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserRegistryPackageOwner with EquatableMixin { + GhUserRegistryPackageOwner(); + + factory GhUserRegistryPackageOwner.fromJson(Map json) => + _$GhUserRegistryPackageOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUserRegistryPackageOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserRegistryPackageSearch with EquatableMixin { + GhUserRegistryPackageSearch(); + + factory GhUserRegistryPackageSearch.fromJson(Map json) => + _$GhUserRegistryPackageSearchFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUserRegistryPackageSearchToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserSubscribable with EquatableMixin { + GhUserSubscribable(); + + factory GhUserSubscribable.fromJson(Map json) => + _$GhUserSubscribableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUserSubscribableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserStarrable with EquatableMixin { + GhUserStarrable(); + + factory GhUserStarrable.fromJson(Map json) => + _$GhUserStarrableFromJson(json); + + GhUserStargazerConnection stargazers; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [stargazers, resolveType]; + Map toJson() => _$GhUserStarrableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserUniformResourceLocatable with EquatableMixin { + GhUserUniformResourceLocatable(); + + factory GhUserUniformResourceLocatable.fromJson(Map json) => + _$GhUserUniformResourceLocatableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUserUniformResourceLocatableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserRepositoryInfo with EquatableMixin { + GhUserRepositoryInfo(); + + factory GhUserRepositoryInfo.fromJson(Map json) => + _$GhUserRepositoryInfoFromJson(json); + + GhUserRepositoryOwner owner; + + String name; + + String description; + + bool isPrivate; + + bool isFork; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => + [owner, name, description, isPrivate, isFork, resolveType]; + Map toJson() => _$GhUserRepositoryInfoToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserPinnableItemConnection with EquatableMixin { + GhUserPinnableItemConnection(); + + factory GhUserPinnableItemConnection.fromJson(Map json) => + _$GhUserPinnableItemConnectionFromJson(json); + + int totalCount; + + List nodes; + + @override + List get props => [totalCount, nodes]; + Map toJson() => _$GhUserPinnableItemConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserAuditEntryActor with EquatableMixin { + GhUserAuditEntryActor(); + + factory GhUserAuditEntryActor.fromJson(Map json) => + _$GhUserAuditEntryActorFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhUserAuditEntryActorToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserActor with EquatableMixin { + GhUserActor(); + + factory GhUserActor.fromJson(Map json) => + _$GhUserActorFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUserActorToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserProfileOwner with EquatableMixin { + GhUserProfileOwner(); + + factory GhUserProfileOwner.fromJson(Map json) => + _$GhUserProfileOwnerFromJson(json); + + String name; + + String location; + + String email; + + String websiteUrl; + + GhUserPinnableItemConnection pinnedItems; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => + [name, location, email, websiteUrl, pinnedItems, resolveType]; + Map toJson() => _$GhUserProfileOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserSponsorable with EquatableMixin { + GhUserSponsorable(); + + factory GhUserSponsorable.fromJson(Map json) => + _$GhUserSponsorableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUserSponsorableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserOrganization extends GhUserAuditEntryActor + with EquatableMixin + implements + GhUserNode, + GhUserActor, + GhUserRegistryPackageOwner, + GhUserRegistryPackageSearch, + GhUserProjectOwner, + GhUserRepositoryOwner, + GhUserUniformResourceLocatable, + GhUserMemberStatusable, + GhUserProfileOwner, + GhUserSponsorable { + GhUserOrganization(); + + factory GhUserOrganization.fromJson(Map json) => + _$GhUserOrganizationFromJson(json); + + String name; + + String description; + + String location; + + String email; + + String websiteUrl; + + DateTime createdAt; + + GhUserPinnableItemConnection pinnedItems; + + GhUserPinnableItemConnection pinnableItems; + + GhUserOrganizationMemberConnection membersWithRole; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + String login; + + @override + String avatarUrl; + + @override + String url; + + @override + List get props => [ + name, + description, + location, + email, + websiteUrl, + createdAt, + pinnedItems, + pinnableItems, + membersWithRole, + resolveType, + login, + avatarUrl, + url + ]; + Map toJson() => _$GhUserOrganizationToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserOrganizationMemberConnection with EquatableMixin { + GhUserOrganizationMemberConnection(); + + factory GhUserOrganizationMemberConnection.fromJson( + Map json) => + _$GhUserOrganizationMemberConnectionFromJson(json); + + int totalCount; + + @override + List get props => [totalCount]; + Map toJson() => + _$GhUserOrganizationMemberConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserMemberStatusable with EquatableMixin { + GhUserMemberStatusable(); + + factory GhUserMemberStatusable.fromJson(Map json) => + _$GhUserMemberStatusableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhUserMemberStatusableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhUserArguments extends JsonSerializable with EquatableMixin { + GhUserArguments({this.login, this.isViewer}); + + factory GhUserArguments.fromJson(Map json) => + _$GhUserArgumentsFromJson(json); + + final String login; + + final bool isViewer; + + @override + List get props => [login, isViewer]; + Map toJson() => _$GhUserArgumentsToJson(this); +} + +class GhUserQuery extends GraphQLQuery { + GhUserQuery({this.variables}); + + @override + final DocumentNode document = DocumentNode(definitions: [ + OperationDefinitionNode( + type: OperationType.query, + name: NameNode(value: 'GhUser'), + variableDefinitions: [ + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'login')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'isViewer')), + type: NamedTypeNode( + name: NameNode(value: 'Boolean'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'repositoryOwner'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'login'), + value: VariableNode(name: NameNode(value: 'login'))) + ], + directives: [ + DirectiveNode(name: NameNode(value: 'skip'), arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode(name: NameNode(value: 'isViewer'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: NameNode(value: 'User'), isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'bio'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'company'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'email'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'websiteUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'starredRepositories'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'followers'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'following'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'contributionsCollection'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'contributionCalendar'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'weeks'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode( + value: 'contributionDays'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'repositories'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '6')), + ArgumentNode( + name: NameNode(value: 'ownerAffiliations'), + value: EnumValueNode( + name: NameNode(value: 'OWNER'))), + ArgumentNode( + name: NameNode(value: 'orderBy'), + value: ObjectValueNode(fields: [ + ObjectFieldNode( + name: NameNode(value: 'field'), + value: EnumValueNode( + name: NameNode(value: 'STARGAZERS'))), + ObjectFieldNode( + name: NameNode(value: 'direction'), + value: EnumValueNode( + name: NameNode(value: 'DESC'))) + ])) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'owner'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isPrivate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isFork'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'stargazers'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'forks'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'primaryLanguage'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'pinnedItems'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '6')) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: + NameNode(value: 'Repository'), + isNonNull: false)), + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'owner'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode( + value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: + NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isPrivate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isFork'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'stargazers'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode( + value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'forks'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode( + value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode( + value: 'primaryLanguage'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'viewerCanFollow'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'viewerIsFollowing'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: NameNode(value: 'Organization'), + isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'email'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'websiteUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'pinnedItems'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '6')) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: + NameNode(value: 'Repository'), + isNonNull: false)), + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'owner'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode( + value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: + NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isPrivate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isFork'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'stargazers'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode( + value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'forks'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode( + value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode( + value: 'primaryLanguage'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'pinnableItems'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '6')), + ArgumentNode( + name: NameNode(value: 'types'), + value: ListValueNode(values: [ + EnumValueNode( + name: NameNode(value: 'REPOSITORY')) + ])) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: + NameNode(value: 'Repository'), + isNonNull: false)), + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'owner'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode( + value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: + NameNode(value: 'description'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isPrivate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'isFork'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'stargazers'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode( + value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'forks'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode( + value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode( + value: 'primaryLanguage'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'membersWithRole'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])), + FieldNode( + name: NameNode(value: 'viewer'), + alias: null, + arguments: [], + directives: [ + DirectiveNode(name: NameNode(value: 'include'), arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode(name: NameNode(value: 'isViewer'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'bio'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'company'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'location'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'email'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'websiteUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'createdAt'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'starredRepositories'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'followers'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'following'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'repositories'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'totalCount'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'contributionsCollection'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'contributionCalendar'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'weeks'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'contributionDays'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'color'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])) + ])) + ])) + ]); + + @override + final String operationName = 'GhUser'; + + @override + final GhUserArguments variables; + + @override + List get props => [document, operationName, variables]; + @override + GhUser parse(Map json) => GhUser.fromJson(json); +} + +@JsonSerializable(explicitToJson: true) +class GhObject with EquatableMixin { + GhObject(); + + factory GhObject.fromJson(Map json) => + _$GhObjectFromJson(json); + + GhObjectRepository repository; + + @override + List get props => [repository]; + Map toJson() => _$GhObjectToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectRepository extends GhObjectPinnableItem + with EquatableMixin + implements + GhObjectNode, + GhObjectProjectOwner, + GhObjectRegistryPackageOwner, + GhObjectRegistryPackageSearch, + GhObjectSubscribable, + GhObjectStarrable, + GhObjectUniformResourceLocatable, + GhObjectRepositoryInfo { + GhObjectRepository(); + + factory GhObjectRepository.fromJson(Map json) => + _$GhObjectRepositoryFromJson(json); + + GhObjectGitObject object; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [object, resolveType]; + Map toJson() => _$GhObjectRepositoryToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectGitObject with EquatableMixin { + GhObjectGitObject(); + + factory GhObjectGitObject.fromJson(Map json) { + switch (json['__typename'].toString()) { + case 'Tree': + return GhObjectTree.fromJson(json); + case 'Blob': + return GhObjectBlob.fromJson(json); + default: + } + return _$GhObjectGitObjectFromJson(json); + } + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() { + switch (resolveType) { + case 'Tree': + return (this as GhObjectTree).toJson(); + case 'Blob': + return (this as GhObjectBlob).toJson(); + default: + } + return _$GhObjectGitObjectToJson(this); + } +} + +@JsonSerializable(explicitToJson: true) +class GhObjectTree + with EquatableMixin + implements GhObjectNode, GhObjectGitObject { + GhObjectTree(); + + factory GhObjectTree.fromJson(Map json) => + _$GhObjectTreeFromJson(json); + + List entries; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [entries, resolveType]; + Map toJson() => _$GhObjectTreeToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectTreeEntry with EquatableMixin { + GhObjectTreeEntry(); + + factory GhObjectTreeEntry.fromJson(Map json) => + _$GhObjectTreeEntryFromJson(json); + + String type; + + String name; + + @override + List get props => [type, name]; + Map toJson() => _$GhObjectTreeEntryToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectNode with EquatableMixin { + GhObjectNode(); + + factory GhObjectNode.fromJson(Map json) => + _$GhObjectNodeFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhObjectNodeToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectBlob + with EquatableMixin + implements GhObjectNode, GhObjectGitObject { + GhObjectBlob(); + + factory GhObjectBlob.fromJson(Map json) => + _$GhObjectBlobFromJson(json); + + String text; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [text, resolveType]; + Map toJson() => _$GhObjectBlobToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectPinnableItem with EquatableMixin { + GhObjectPinnableItem(); + + factory GhObjectPinnableItem.fromJson(Map json) => + _$GhObjectPinnableItemFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhObjectPinnableItemToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectProjectOwner with EquatableMixin { + GhObjectProjectOwner(); + + factory GhObjectProjectOwner.fromJson(Map json) => + _$GhObjectProjectOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhObjectProjectOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectRegistryPackageOwner with EquatableMixin { + GhObjectRegistryPackageOwner(); + + factory GhObjectRegistryPackageOwner.fromJson(Map json) => + _$GhObjectRegistryPackageOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhObjectRegistryPackageOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectRegistryPackageSearch with EquatableMixin { + GhObjectRegistryPackageSearch(); + + factory GhObjectRegistryPackageSearch.fromJson(Map json) => + _$GhObjectRegistryPackageSearchFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhObjectRegistryPackageSearchToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectSubscribable with EquatableMixin { + GhObjectSubscribable(); + + factory GhObjectSubscribable.fromJson(Map json) => + _$GhObjectSubscribableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhObjectSubscribableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectStarrable with EquatableMixin { + GhObjectStarrable(); + + factory GhObjectStarrable.fromJson(Map json) => + _$GhObjectStarrableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhObjectStarrableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectUniformResourceLocatable with EquatableMixin { + GhObjectUniformResourceLocatable(); + + factory GhObjectUniformResourceLocatable.fromJson( + Map json) => + _$GhObjectUniformResourceLocatableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => + _$GhObjectUniformResourceLocatableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectRepositoryInfo with EquatableMixin { + GhObjectRepositoryInfo(); + + factory GhObjectRepositoryInfo.fromJson(Map json) => + _$GhObjectRepositoryInfoFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhObjectRepositoryInfoToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhObjectArguments extends JsonSerializable with EquatableMixin { + GhObjectArguments({this.owner, this.name, this.expression}); + + factory GhObjectArguments.fromJson(Map json) => + _$GhObjectArgumentsFromJson(json); + + final String owner; + + final String name; + + final String expression; + + @override + List get props => [owner, name, expression]; + Map toJson() => _$GhObjectArgumentsToJson(this); +} + +class GhObjectQuery extends GraphQLQuery { + GhObjectQuery({this.variables}); + + @override + final DocumentNode document = DocumentNode(definitions: [ + OperationDefinitionNode( + type: OperationType.query, + name: NameNode(value: 'GhObject'), + variableDefinitions: [ + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'owner')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'name')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'expression')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'repository'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'owner'), + value: VariableNode(name: NameNode(value: 'owner'))), + ArgumentNode( + name: NameNode(value: 'name'), + value: VariableNode(name: NameNode(value: 'name'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'object'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'expression'), + value: + VariableNode(name: NameNode(value: 'expression'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: NameNode(value: 'Tree'), + isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'entries'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'type'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: NameNode(value: 'Blob'), + isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'text'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])) + ]); + + @override + final String operationName = 'GhObject'; + + @override + final GhObjectArguments variables; + + @override + List get props => [document, operationName, variables]; + @override + GhObject parse(Map json) => GhObject.fromJson(json); +} + +mixin TMixin { + GhCommitsGitObject target; +} + +@JsonSerializable(explicitToJson: true) +class GhCommits with EquatableMixin { + GhCommits(); + + factory GhCommits.fromJson(Map json) => + _$GhCommitsFromJson(json); + + GhCommitsRepository repository; + + @override + List get props => [repository]; + Map toJson() => _$GhCommitsToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsRepository extends GhCommitsPinnableItem + with EquatableMixin + implements + GhCommitsNode, + GhCommitsProjectOwner, + GhCommitsRegistryPackageOwner, + GhCommitsRegistryPackageSearch, + GhCommitsSubscribable, + GhCommitsStarrable, + GhCommitsUniformResourceLocatable, + GhCommitsRepositoryInfo { + GhCommitsRepository(); + + factory GhCommitsRepository.fromJson(Map json) => + _$GhCommitsRepositoryFromJson(json); + + GhCommitsRef defaultBranchRef; + + GhCommitsRef ref; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [defaultBranchRef, ref, resolveType]; + Map toJson() => _$GhCommitsRepositoryToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsRef with EquatableMixin, TMixin implements GhCommitsNode { + GhCommitsRef(); + + factory GhCommitsRef.fromJson(Map json) => + _$GhCommitsRefFromJson(json); + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [target, resolveType]; + Map toJson() => _$GhCommitsRefToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsGitObject with EquatableMixin { + GhCommitsGitObject(); + + factory GhCommitsGitObject.fromJson(Map json) { + switch (json['__typename'].toString()) { + case 'Commit': + return GhCommitsCommit.fromJson(json); + default: + } + return _$GhCommitsGitObjectFromJson(json); + } + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() { + switch (resolveType) { + case 'Commit': + return (this as GhCommitsCommit).toJson(); + default: + } + return _$GhCommitsGitObjectToJson(this); + } +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsCommit extends GhCommitsPullRequestTimelineItem + with EquatableMixin + implements + GhCommitsNode, + GhCommitsGitObject, + GhCommitsSubscribable, + GhCommitsUniformResourceLocatable { + GhCommitsCommit(); + + factory GhCommitsCommit.fromJson(Map json) => + _$GhCommitsCommitFromJson(json); + + String oid; + + String url; + + String messageHeadline; + + DateTime committedDate; + + GhCommitsGitActor author; + + GhCommitsStatus status; + + GhCommitsCommitHistoryConnection history; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [ + oid, + url, + messageHeadline, + committedDate, + author, + status, + history, + resolveType + ]; + Map toJson() => _$GhCommitsCommitToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsGitActor with EquatableMixin { + GhCommitsGitActor(); + + factory GhCommitsGitActor.fromJson(Map json) => + _$GhCommitsGitActorFromJson(json); + + String name; + + String avatarUrl; + + GhCommitsUser user; + + @override + List get props => [name, avatarUrl, user]; + Map toJson() => _$GhCommitsGitActorToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsUser extends GhCommitsAuditEntryActor + with EquatableMixin + implements + GhCommitsNode, + GhCommitsActor, + GhCommitsRegistryPackageOwner, + GhCommitsRegistryPackageSearch, + GhCommitsProjectOwner, + GhCommitsRepositoryOwner, + GhCommitsUniformResourceLocatable, + GhCommitsProfileOwner, + GhCommitsSponsorable { + GhCommitsUser(); + + factory GhCommitsUser.fromJson(Map json) => + _$GhCommitsUserFromJson(json); + + @override + String login; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, resolveType]; + Map toJson() => _$GhCommitsUserToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsAuditEntryActor with EquatableMixin { + GhCommitsAuditEntryActor(); + + factory GhCommitsAuditEntryActor.fromJson(Map json) => + _$GhCommitsAuditEntryActorFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhCommitsAuditEntryActorToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsNode with EquatableMixin { + GhCommitsNode(); + + factory GhCommitsNode.fromJson(Map json) => + _$GhCommitsNodeFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhCommitsNodeToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsActor with EquatableMixin { + GhCommitsActor(); + + factory GhCommitsActor.fromJson(Map json) => + _$GhCommitsActorFromJson(json); + + String login; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, resolveType]; + Map toJson() => _$GhCommitsActorToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsRegistryPackageOwner with EquatableMixin { + GhCommitsRegistryPackageOwner(); + + factory GhCommitsRegistryPackageOwner.fromJson(Map json) => + _$GhCommitsRegistryPackageOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhCommitsRegistryPackageOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsRegistryPackageSearch with EquatableMixin { + GhCommitsRegistryPackageSearch(); + + factory GhCommitsRegistryPackageSearch.fromJson(Map json) => + _$GhCommitsRegistryPackageSearchFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhCommitsRegistryPackageSearchToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsProjectOwner with EquatableMixin { + GhCommitsProjectOwner(); + + factory GhCommitsProjectOwner.fromJson(Map json) => + _$GhCommitsProjectOwnerFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhCommitsProjectOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsRepositoryOwner with EquatableMixin { + GhCommitsRepositoryOwner(); + + factory GhCommitsRepositoryOwner.fromJson(Map json) => + _$GhCommitsRepositoryOwnerFromJson(json); + + String login; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, resolveType]; + Map toJson() => _$GhCommitsRepositoryOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsUniformResourceLocatable with EquatableMixin { + GhCommitsUniformResourceLocatable(); + + factory GhCommitsUniformResourceLocatable.fromJson( + Map json) => + _$GhCommitsUniformResourceLocatableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => + _$GhCommitsUniformResourceLocatableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsProfileOwner with EquatableMixin { + GhCommitsProfileOwner(); + + factory GhCommitsProfileOwner.fromJson(Map json) => + _$GhCommitsProfileOwnerFromJson(json); + + String login; + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [login, resolveType]; + Map toJson() => _$GhCommitsProfileOwnerToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsSponsorable with EquatableMixin { + GhCommitsSponsorable(); + + factory GhCommitsSponsorable.fromJson(Map json) => + _$GhCommitsSponsorableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhCommitsSponsorableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsStatus with EquatableMixin implements GhCommitsNode { + GhCommitsStatus(); + + factory GhCommitsStatus.fromJson(Map json) => + _$GhCommitsStatusFromJson(json); + + GhCommitsStatusState state; + + @override + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [state, resolveType]; + Map toJson() => _$GhCommitsStatusToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsCommitHistoryConnection with EquatableMixin { + GhCommitsCommitHistoryConnection(); + + factory GhCommitsCommitHistoryConnection.fromJson( + Map json) => + _$GhCommitsCommitHistoryConnectionFromJson(json); + + GhCommitsPageInfo pageInfo; + + List nodes; + + @override + List get props => [pageInfo, nodes]; + Map toJson() => + _$GhCommitsCommitHistoryConnectionToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsPageInfo with EquatableMixin { + GhCommitsPageInfo(); + + factory GhCommitsPageInfo.fromJson(Map json) => + _$GhCommitsPageInfoFromJson(json); + + bool hasNextPage; + + String endCursor; + + @override + List get props => [hasNextPage, endCursor]; + Map toJson() => _$GhCommitsPageInfoToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsPullRequestTimelineItem with EquatableMixin { + GhCommitsPullRequestTimelineItem(); + + factory GhCommitsPullRequestTimelineItem.fromJson( + Map json) => + _$GhCommitsPullRequestTimelineItemFromJson(json); + + @override + List get props => []; + Map toJson() => + _$GhCommitsPullRequestTimelineItemToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsSubscribable with EquatableMixin { + GhCommitsSubscribable(); + + factory GhCommitsSubscribable.fromJson(Map json) => + _$GhCommitsSubscribableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhCommitsSubscribableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsPinnableItem with EquatableMixin { + GhCommitsPinnableItem(); + + factory GhCommitsPinnableItem.fromJson(Map json) => + _$GhCommitsPinnableItemFromJson(json); + + @override + List get props => []; + Map toJson() => _$GhCommitsPinnableItemToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsStarrable with EquatableMixin { + GhCommitsStarrable(); + + factory GhCommitsStarrable.fromJson(Map json) => + _$GhCommitsStarrableFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhCommitsStarrableToJson(this); +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsRepositoryInfo with EquatableMixin { + GhCommitsRepositoryInfo(); + + factory GhCommitsRepositoryInfo.fromJson(Map json) => + _$GhCommitsRepositoryInfoFromJson(json); + + @JsonKey(name: '__typename') + String resolveType; + + @override + List get props => [resolveType]; + Map toJson() => _$GhCommitsRepositoryInfoToJson(this); +} + +enum GhCommitsStatusState { + EXPECTED, + ERROR, + FAILURE, + PENDING, + SUCCESS, +} + +@JsonSerializable(explicitToJson: true) +class GhCommitsArguments extends JsonSerializable with EquatableMixin { + GhCommitsArguments( + {this.owner, this.name, this.ref, this.hasRef, this.after}); + + factory GhCommitsArguments.fromJson(Map json) => + _$GhCommitsArgumentsFromJson(json); + + final String owner; + + final String name; + + final String ref; + + final bool hasRef; + + final String after; + + @override + List get props => [owner, name, ref, hasRef, after]; + Map toJson() => _$GhCommitsArgumentsToJson(this); +} + +class GhCommitsQuery extends GraphQLQuery { + GhCommitsQuery({this.variables}); + + @override + final DocumentNode document = DocumentNode(definitions: [ + FragmentDefinitionNode( + name: NameNode(value: 'T'), + typeCondition: TypeConditionNode( + on: NamedTypeNode(name: NameNode(value: 'Ref'), isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'target'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: '__typename'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + InlineFragmentNode( + typeCondition: TypeConditionNode( + on: NamedTypeNode( + name: NameNode(value: 'Commit'), isNonNull: false)), + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'oid'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'messageHeadline'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'committedDate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'author'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])), + FieldNode( + name: NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'state'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'history'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'first'), + value: IntValueNode(value: '30')), + ArgumentNode( + name: NameNode(value: 'after'), + value: VariableNode( + name: NameNode(value: 'after'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'pageInfo'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'hasNextPage'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'endCursor'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])), + FieldNode( + name: NameNode(value: 'nodes'), + alias: null, + arguments: [], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'oid'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'url'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'messageHeadline'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'committedDate'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'author'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'name'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'avatarUrl'), + alias: null, + arguments: [], + directives: [], + selectionSet: null), + FieldNode( + name: NameNode(value: 'user'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: + NameNode(value: 'login'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])), + FieldNode( + name: NameNode(value: 'status'), + alias: null, + arguments: [], + directives: [], + selectionSet: + SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'state'), + alias: null, + arguments: [], + directives: [], + selectionSet: null) + ])) + ])) + ])) + ])) + ])) + ])), + OperationDefinitionNode( + type: OperationType.query, + name: NameNode(value: 'GhCommits'), + variableDefinitions: [ + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'owner')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'name')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'ref')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'hasRef')), + type: NamedTypeNode( + name: NameNode(value: 'Boolean'), isNonNull: true), + defaultValue: DefaultValueNode(value: null), + directives: []), + VariableDefinitionNode( + variable: VariableNode(name: NameNode(value: 'after')), + type: NamedTypeNode( + name: NameNode(value: 'String'), isNonNull: false), + defaultValue: DefaultValueNode(value: null), + directives: []) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'repository'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'owner'), + value: VariableNode(name: NameNode(value: 'owner'))), + ArgumentNode( + name: NameNode(value: 'name'), + value: VariableNode(name: NameNode(value: 'name'))) + ], + directives: [], + selectionSet: SelectionSetNode(selections: [ + FieldNode( + name: NameNode(value: 'defaultBranchRef'), + alias: null, + arguments: [], + directives: [ + DirectiveNode(name: NameNode(value: 'skip'), arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: + VariableNode(name: NameNode(value: 'hasRef'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'T'), directives: []) + ])), + FieldNode( + name: NameNode(value: 'ref'), + alias: null, + arguments: [ + ArgumentNode( + name: NameNode(value: 'qualifiedName'), + value: VariableNode(name: NameNode(value: 'ref'))) + ], + directives: [ + DirectiveNode( + name: NameNode(value: 'include'), + arguments: [ + ArgumentNode( + name: NameNode(value: 'if'), + value: VariableNode( + name: NameNode(value: 'hasRef'))) + ]) + ], + selectionSet: SelectionSetNode(selections: [ + FragmentSpreadNode( + name: NameNode(value: 'T'), directives: []) + ])) + ])) + ])) + ]); + + @override + final String operationName = 'GhCommits'; + + @override + final GhCommitsArguments variables; + + @override + List get props => [document, operationName, variables]; + @override + GhCommits parse(Map json) => GhCommits.fromJson(json); +} diff --git a/lib/graphql/gh.g.dart b/lib/graphql/gh.g.dart new file mode 100644 index 0000000..fc2686b --- /dev/null +++ b/lib/graphql/gh.g.dart @@ -0,0 +1,2421 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'gh.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GhRepo _$GhRepoFromJson(Map json) { + return GhRepo() + ..repository = json['repository'] == null + ? null + : GhRepoRepository.fromJson(json['repository'] as Map); +} + +Map _$GhRepoToJson(GhRepo instance) => { + 'repository': instance.repository?.toJson(), + }; + +GhRepoRepository _$GhRepoRepositoryFromJson(Map json) { + return GhRepoRepository() + ..owner = json['owner'] == null + ? null + : GhRepoRepositoryOwner.fromJson(json['owner'] as Map) + ..name = json['name'] as String + ..description = json['description'] as String + ..homepageUrl = json['homepageUrl'] as String + ..isPrivate = json['isPrivate'] as bool + ..isFork = json['isFork'] as bool + ..stargazers = json['stargazers'] == null + ? null + : GhRepoStargazerConnection.fromJson( + json['stargazers'] as Map) + ..forks = json['forks'] == null + ? null + : GhRepoRepositoryConnection.fromJson( + json['forks'] as Map) + ..primaryLanguage = json['primaryLanguage'] == null + ? null + : GhRepoLanguage.fromJson( + json['primaryLanguage'] as Map) + ..id = json['id'] as String + ..diskUsage = json['diskUsage'] as int + ..hasIssuesEnabled = json['hasIssuesEnabled'] as bool + ..url = json['url'] as String + ..viewerHasStarred = json['viewerHasStarred'] as bool + ..projectsUrl = json['projectsUrl'] as String + ..watchers = json['watchers'] == null + ? null + : GhRepoUserConnection.fromJson( + json['watchers'] as Map) + ..issues = json['issues'] == null + ? null + : GhRepoIssueConnection.fromJson(json['issues'] as Map) + ..pullRequests = json['pullRequests'] == null + ? null + : GhRepoPullRequestConnection.fromJson( + json['pullRequests'] as Map) + ..projects = json['projects'] == null + ? null + : GhRepoProjectConnection.fromJson( + json['projects'] as Map) + ..releases = json['releases'] == null + ? null + : GhRepoReleaseConnection.fromJson( + json['releases'] as Map) + ..languages = json['languages'] == null + ? null + : GhRepoLanguageConnection.fromJson( + json['languages'] as Map) + ..defaultBranchRef = json['defaultBranchRef'] == null + ? null + : GhRepoRef.fromJson(json['defaultBranchRef'] as Map) + ..ref = json['ref'] == null + ? null + : GhRepoRef.fromJson(json['ref'] as Map) + ..refs = json['refs'] == null + ? null + : GhRepoRefConnection.fromJson(json['refs'] as Map) + ..licenseInfo = json['licenseInfo'] == null + ? null + : GhRepoLicense.fromJson(json['licenseInfo'] as Map) + ..repositoryTopics = json['repositoryTopics'] == null + ? null + : GhRepoRepositoryTopicConnection.fromJson(json['repositoryTopics'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoRepositoryToJson(GhRepoRepository instance) => + { + 'owner': instance.owner?.toJson(), + 'name': instance.name, + 'description': instance.description, + 'homepageUrl': instance.homepageUrl, + 'isPrivate': instance.isPrivate, + 'isFork': instance.isFork, + 'stargazers': instance.stargazers?.toJson(), + 'forks': instance.forks?.toJson(), + 'primaryLanguage': instance.primaryLanguage?.toJson(), + 'id': instance.id, + 'diskUsage': instance.diskUsage, + 'hasIssuesEnabled': instance.hasIssuesEnabled, + 'url': instance.url, + 'viewerHasStarred': instance.viewerHasStarred, + 'projectsUrl': instance.projectsUrl, + 'watchers': instance.watchers?.toJson(), + 'issues': instance.issues?.toJson(), + 'pullRequests': instance.pullRequests?.toJson(), + 'projects': instance.projects?.toJson(), + 'releases': instance.releases?.toJson(), + 'languages': instance.languages?.toJson(), + 'defaultBranchRef': instance.defaultBranchRef?.toJson(), + 'ref': instance.ref?.toJson(), + 'refs': instance.refs?.toJson(), + 'licenseInfo': instance.licenseInfo?.toJson(), + 'repositoryTopics': instance.repositoryTopics?.toJson(), + '__typename': instance.resolveType, + }; + +GhRepoRepositoryOwner _$GhRepoRepositoryOwnerFromJson( + Map json) { + return GhRepoRepositoryOwner() + ..login = json['login'] as String + ..avatarUrl = json['avatarUrl'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoRepositoryOwnerToJson( + GhRepoRepositoryOwner instance) => + { + 'login': instance.login, + 'avatarUrl': instance.avatarUrl, + '__typename': instance.resolveType, + }; + +GhRepoStargazerConnection _$GhRepoStargazerConnectionFromJson( + Map json) { + return GhRepoStargazerConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhRepoStargazerConnectionToJson( + GhRepoStargazerConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhRepoRepositoryConnection _$GhRepoRepositoryConnectionFromJson( + Map json) { + return GhRepoRepositoryConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhRepoRepositoryConnectionToJson( + GhRepoRepositoryConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhRepoLanguage _$GhRepoLanguageFromJson(Map json) { + return GhRepoLanguage() + ..color = json['color'] as String + ..name = json['name'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoLanguageToJson(GhRepoLanguage instance) => + { + 'color': instance.color, + 'name': instance.name, + '__typename': instance.resolveType, + }; + +GhRepoNode _$GhRepoNodeFromJson(Map json) { + return GhRepoNode()..resolveType = json['__typename'] as String; +} + +Map _$GhRepoNodeToJson(GhRepoNode instance) => + { + '__typename': instance.resolveType, + }; + +GhRepoUserConnection _$GhRepoUserConnectionFromJson(Map json) { + return GhRepoUserConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhRepoUserConnectionToJson( + GhRepoUserConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhRepoIssueConnection _$GhRepoIssueConnectionFromJson( + Map json) { + return GhRepoIssueConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhRepoIssueConnectionToJson( + GhRepoIssueConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhRepoPullRequestConnection _$GhRepoPullRequestConnectionFromJson( + Map json) { + return GhRepoPullRequestConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhRepoPullRequestConnectionToJson( + GhRepoPullRequestConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhRepoProjectConnection _$GhRepoProjectConnectionFromJson( + Map json) { + return GhRepoProjectConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhRepoProjectConnectionToJson( + GhRepoProjectConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhRepoReleaseConnection _$GhRepoReleaseConnectionFromJson( + Map json) { + return GhRepoReleaseConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhRepoReleaseConnectionToJson( + GhRepoReleaseConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhRepoLanguageConnection _$GhRepoLanguageConnectionFromJson( + Map json) { + return GhRepoLanguageConnection() + ..totalSize = json['totalSize'] as int + ..edges = (json['edges'] as List) + ?.map((e) => e == null + ? null + : GhRepoLanguageEdge.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhRepoLanguageConnectionToJson( + GhRepoLanguageConnection instance) => + { + 'totalSize': instance.totalSize, + 'edges': instance.edges?.map((e) => e?.toJson())?.toList(), + }; + +GhRepoLanguageEdge _$GhRepoLanguageEdgeFromJson(Map json) { + return GhRepoLanguageEdge() + ..size = json['size'] as int + ..node = json['node'] == null + ? null + : GhRepoLanguage.fromJson(json['node'] as Map); +} + +Map _$GhRepoLanguageEdgeToJson(GhRepoLanguageEdge instance) => + { + 'size': instance.size, + 'node': instance.node?.toJson(), + }; + +GhRepoRef _$GhRepoRefFromJson(Map json) { + return GhRepoRef() + ..name = json['name'] as String + ..target = json['target'] == null + ? null + : GhRepoGitObject.fromJson(json['target'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoRefToJson(GhRepoRef instance) => { + 'name': instance.name, + 'target': instance.target?.toJson(), + '__typename': instance.resolveType, + }; + +GhRepoGitObject _$GhRepoGitObjectFromJson(Map json) { + return GhRepoGitObject()..resolveType = json['__typename'] as String; +} + +Map _$GhRepoGitObjectToJson(GhRepoGitObject instance) => + { + '__typename': instance.resolveType, + }; + +GhRepoCommit _$GhRepoCommitFromJson(Map json) { + return GhRepoCommit() + ..history = json['history'] == null + ? null + : GhRepoCommitHistoryConnection.fromJson( + json['history'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoCommitToJson(GhRepoCommit instance) => + { + 'history': instance.history?.toJson(), + '__typename': instance.resolveType, + }; + +GhRepoCommitHistoryConnection _$GhRepoCommitHistoryConnectionFromJson( + Map json) { + return GhRepoCommitHistoryConnection() + ..totalCount = json['totalCount'] as int; +} + +Map _$GhRepoCommitHistoryConnectionToJson( + GhRepoCommitHistoryConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhRepoPullRequestTimelineItem _$GhRepoPullRequestTimelineItemFromJson( + Map json) { + return GhRepoPullRequestTimelineItem(); +} + +Map _$GhRepoPullRequestTimelineItemToJson( + GhRepoPullRequestTimelineItem instance) => + {}; + +GhRepoSubscribable _$GhRepoSubscribableFromJson(Map json) { + return GhRepoSubscribable()..resolveType = json['__typename'] as String; +} + +Map _$GhRepoSubscribableToJson(GhRepoSubscribable instance) => + { + '__typename': instance.resolveType, + }; + +GhRepoUniformResourceLocatable _$GhRepoUniformResourceLocatableFromJson( + Map json) { + return GhRepoUniformResourceLocatable() + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoUniformResourceLocatableToJson( + GhRepoUniformResourceLocatable instance) => + { + '__typename': instance.resolveType, + }; + +GhRepoRefConnection _$GhRepoRefConnectionFromJson(Map json) { + return GhRepoRefConnection() + ..totalCount = json['totalCount'] as int + ..nodes = (json['nodes'] as List) + ?.map((e) => + e == null ? null : GhRepoRef.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhRepoRefConnectionToJson( + GhRepoRefConnection instance) => + { + 'totalCount': instance.totalCount, + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhRepoLicense _$GhRepoLicenseFromJson(Map json) { + return GhRepoLicense() + ..name = json['name'] as String + ..spdxId = json['spdxId'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoLicenseToJson(GhRepoLicense instance) => + { + 'name': instance.name, + 'spdxId': instance.spdxId, + '__typename': instance.resolveType, + }; + +GhRepoRepositoryTopicConnection _$GhRepoRepositoryTopicConnectionFromJson( + Map json) { + return GhRepoRepositoryTopicConnection() + ..nodes = (json['nodes'] as List) + ?.map((e) => e == null + ? null + : GhRepoRepositoryTopic.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhRepoRepositoryTopicConnectionToJson( + GhRepoRepositoryTopicConnection instance) => + { + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhRepoRepositoryTopic _$GhRepoRepositoryTopicFromJson( + Map json) { + return GhRepoRepositoryTopic() + ..url = json['url'] as String + ..topic = json['topic'] == null + ? null + : GhRepoTopic.fromJson(json['topic'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoRepositoryTopicToJson( + GhRepoRepositoryTopic instance) => + { + 'url': instance.url, + 'topic': instance.topic?.toJson(), + '__typename': instance.resolveType, + }; + +GhRepoTopic _$GhRepoTopicFromJson(Map json) { + return GhRepoTopic() + ..name = json['name'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoTopicToJson(GhRepoTopic instance) => + { + 'name': instance.name, + '__typename': instance.resolveType, + }; + +GhRepoStarrable _$GhRepoStarrableFromJson(Map json) { + return GhRepoStarrable()..resolveType = json['__typename'] as String; +} + +Map _$GhRepoStarrableToJson(GhRepoStarrable instance) => + { + '__typename': instance.resolveType, + }; + +GhRepoPinnableItem _$GhRepoPinnableItemFromJson(Map json) { + return GhRepoPinnableItem(); +} + +Map _$GhRepoPinnableItemToJson(GhRepoPinnableItem instance) => + {}; + +GhRepoProjectOwner _$GhRepoProjectOwnerFromJson(Map json) { + return GhRepoProjectOwner() + ..id = json['id'] as String + ..projectsUrl = json['projectsUrl'] as String + ..projects = json['projects'] == null + ? null + : GhRepoProjectConnection.fromJson( + json['projects'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoProjectOwnerToJson(GhRepoProjectOwner instance) => + { + 'id': instance.id, + 'projectsUrl': instance.projectsUrl, + 'projects': instance.projects?.toJson(), + '__typename': instance.resolveType, + }; + +GhRepoRegistryPackageOwner _$GhRepoRegistryPackageOwnerFromJson( + Map json) { + return GhRepoRegistryPackageOwner() + ..id = json['id'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoRegistryPackageOwnerToJson( + GhRepoRegistryPackageOwner instance) => + { + 'id': instance.id, + '__typename': instance.resolveType, + }; + +GhRepoRegistryPackageSearch _$GhRepoRegistryPackageSearchFromJson( + Map json) { + return GhRepoRegistryPackageSearch() + ..id = json['id'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoRegistryPackageSearchToJson( + GhRepoRegistryPackageSearch instance) => + { + 'id': instance.id, + '__typename': instance.resolveType, + }; + +GhRepoRepositoryInfo _$GhRepoRepositoryInfoFromJson(Map json) { + return GhRepoRepositoryInfo() + ..owner = json['owner'] == null + ? null + : GhRepoRepositoryOwner.fromJson(json['owner'] as Map) + ..name = json['name'] as String + ..description = json['description'] as String + ..homepageUrl = json['homepageUrl'] as String + ..isPrivate = json['isPrivate'] as bool + ..isFork = json['isFork'] as bool + ..hasIssuesEnabled = json['hasIssuesEnabled'] as bool + ..url = json['url'] as String + ..licenseInfo = json['licenseInfo'] == null + ? null + : GhRepoLicense.fromJson(json['licenseInfo'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhRepoRepositoryInfoToJson( + GhRepoRepositoryInfo instance) => + { + 'owner': instance.owner?.toJson(), + 'name': instance.name, + 'description': instance.description, + 'homepageUrl': instance.homepageUrl, + 'isPrivate': instance.isPrivate, + 'isFork': instance.isFork, + 'hasIssuesEnabled': instance.hasIssuesEnabled, + 'url': instance.url, + 'licenseInfo': instance.licenseInfo?.toJson(), + '__typename': instance.resolveType, + }; + +GhRepoArguments _$GhRepoArgumentsFromJson(Map json) { + return GhRepoArguments( + owner: json['owner'] as String, + name: json['name'] as String, + branchSpecified: json['branchSpecified'] as bool, + branch: json['branch'] as String, + ); +} + +Map _$GhRepoArgumentsToJson(GhRepoArguments instance) => + { + 'owner': instance.owner, + 'name': instance.name, + 'branchSpecified': instance.branchSpecified, + 'branch': instance.branch, + }; + +GhUsers _$GhUsersFromJson(Map json) { + return GhUsers() + ..user = json['user'] == null + ? null + : GhUsersUser.fromJson(json['user'] as Map) + ..organization = json['organization'] == null + ? null + : GhUsersOrganization.fromJson( + json['organization'] as Map) + ..repository = json['repository'] == null + ? null + : GhUsersRepository.fromJson( + json['repository'] as Map); +} + +Map _$GhUsersToJson(GhUsers instance) => { + 'user': instance.user?.toJson(), + 'organization': instance.organization?.toJson(), + 'repository': instance.repository?.toJson(), + }; + +GhUsersUser _$GhUsersUserFromJson(Map json) { + return GhUsersUser() + ..login = json['login'] as String + ..name = json['name'] as String + ..avatarUrl = json['avatarUrl'] as String + ..company = json['company'] as String + ..location = json['location'] as String + ..createdAt = json['createdAt'] == null + ? null + : DateTime.parse(json['createdAt'] as String) + ..followers = json['followers'] == null + ? null + : GhUsersFollowerConnection.fromJson( + json['followers'] as Map) + ..following = json['following'] == null + ? null + : GhUsersFollowingConnection.fromJson( + json['following'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersUserToJson(GhUsersUser instance) => + { + 'login': instance.login, + 'name': instance.name, + 'avatarUrl': instance.avatarUrl, + 'company': instance.company, + 'location': instance.location, + 'createdAt': instance.createdAt?.toIso8601String(), + 'followers': instance.followers?.toJson(), + 'following': instance.following?.toJson(), + '__typename': instance.resolveType, + }; + +GhUsersFollowerConnection _$GhUsersFollowerConnectionFromJson( + Map json) { + return GhUsersFollowerConnection() + ..pageInfo = json['pageInfo'] == null + ? null + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) + ..nodes = (json['nodes'] as List) + ?.map((e) => + e == null ? null : GhUsersUser.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhUsersFollowerConnectionToJson( + GhUsersFollowerConnection instance) => + { + 'pageInfo': instance.pageInfo?.toJson(), + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhUsersPageInfo _$GhUsersPageInfoFromJson(Map json) { + return GhUsersPageInfo() + ..hasNextPage = json['hasNextPage'] as bool + ..endCursor = json['endCursor'] as String; +} + +Map _$GhUsersPageInfoToJson(GhUsersPageInfo instance) => + { + 'hasNextPage': instance.hasNextPage, + 'endCursor': instance.endCursor, + }; + +GhUsersAuditEntryActor _$GhUsersAuditEntryActorFromJson( + Map json) { + return GhUsersAuditEntryActor(); +} + +Map _$GhUsersAuditEntryActorToJson( + GhUsersAuditEntryActor instance) => + {}; + +GhUsersNode _$GhUsersNodeFromJson(Map json) { + return GhUsersNode()..resolveType = json['__typename'] as String; +} + +Map _$GhUsersNodeToJson(GhUsersNode instance) => + { + '__typename': instance.resolveType, + }; + +GhUsersActor _$GhUsersActorFromJson(Map json) { + return GhUsersActor() + ..login = json['login'] as String + ..avatarUrl = json['avatarUrl'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersActorToJson(GhUsersActor instance) => + { + 'login': instance.login, + 'avatarUrl': instance.avatarUrl, + '__typename': instance.resolveType, + }; + +GhUsersRegistryPackageOwner _$GhUsersRegistryPackageOwnerFromJson( + Map json) { + return GhUsersRegistryPackageOwner() + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersRegistryPackageOwnerToJson( + GhUsersRegistryPackageOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhUsersRegistryPackageSearch _$GhUsersRegistryPackageSearchFromJson( + Map json) { + return GhUsersRegistryPackageSearch() + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersRegistryPackageSearchToJson( + GhUsersRegistryPackageSearch instance) => + { + '__typename': instance.resolveType, + }; + +GhUsersProjectOwner _$GhUsersProjectOwnerFromJson(Map json) { + return GhUsersProjectOwner()..resolveType = json['__typename'] as String; +} + +Map _$GhUsersProjectOwnerToJson( + GhUsersProjectOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhUsersRepositoryOwner _$GhUsersRepositoryOwnerFromJson( + Map json) { + return GhUsersRepositoryOwner() + ..login = json['login'] as String + ..avatarUrl = json['avatarUrl'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersRepositoryOwnerToJson( + GhUsersRepositoryOwner instance) => + { + 'login': instance.login, + 'avatarUrl': instance.avatarUrl, + '__typename': instance.resolveType, + }; + +GhUsersUniformResourceLocatable _$GhUsersUniformResourceLocatableFromJson( + Map json) { + return GhUsersUniformResourceLocatable() + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersUniformResourceLocatableToJson( + GhUsersUniformResourceLocatable instance) => + { + '__typename': instance.resolveType, + }; + +GhUsersProfileOwner _$GhUsersProfileOwnerFromJson(Map json) { + return GhUsersProfileOwner() + ..login = json['login'] as String + ..name = json['name'] as String + ..location = json['location'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersProfileOwnerToJson( + GhUsersProfileOwner instance) => + { + 'login': instance.login, + 'name': instance.name, + 'location': instance.location, + '__typename': instance.resolveType, + }; + +GhUsersSponsorable _$GhUsersSponsorableFromJson(Map json) { + return GhUsersSponsorable()..resolveType = json['__typename'] as String; +} + +Map _$GhUsersSponsorableToJson(GhUsersSponsorable instance) => + { + '__typename': instance.resolveType, + }; + +GhUsersFollowingConnection _$GhUsersFollowingConnectionFromJson( + Map json) { + return GhUsersFollowingConnection() + ..pageInfo = json['pageInfo'] == null + ? null + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) + ..nodes = (json['nodes'] as List) + ?.map((e) => + e == null ? null : GhUsersUser.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhUsersFollowingConnectionToJson( + GhUsersFollowingConnection instance) => + { + 'pageInfo': instance.pageInfo?.toJson(), + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhUsersOrganization _$GhUsersOrganizationFromJson(Map json) { + return GhUsersOrganization() + ..login = json['login'] as String + ..name = json['name'] as String + ..avatarUrl = json['avatarUrl'] as String + ..location = json['location'] as String + ..membersWithRole = json['membersWithRole'] == null + ? null + : GhUsersOrganizationMemberConnection.fromJson( + json['membersWithRole'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersOrganizationToJson( + GhUsersOrganization instance) => + { + 'login': instance.login, + 'name': instance.name, + 'avatarUrl': instance.avatarUrl, + 'location': instance.location, + 'membersWithRole': instance.membersWithRole?.toJson(), + '__typename': instance.resolveType, + }; + +GhUsersOrganizationMemberConnection + _$GhUsersOrganizationMemberConnectionFromJson(Map json) { + return GhUsersOrganizationMemberConnection() + ..pageInfo = json['pageInfo'] == null + ? null + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) + ..nodes = (json['nodes'] as List) + ?.map((e) => + e == null ? null : GhUsersUser.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhUsersOrganizationMemberConnectionToJson( + GhUsersOrganizationMemberConnection instance) => + { + 'pageInfo': instance.pageInfo?.toJson(), + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhUsersMemberStatusable _$GhUsersMemberStatusableFromJson( + Map json) { + return GhUsersMemberStatusable()..resolveType = json['__typename'] as String; +} + +Map _$GhUsersMemberStatusableToJson( + GhUsersMemberStatusable instance) => + { + '__typename': instance.resolveType, + }; + +GhUsersRepository _$GhUsersRepositoryFromJson(Map json) { + return GhUsersRepository() + ..watchers = json['watchers'] == null + ? null + : GhUsersUserConnection.fromJson( + json['watchers'] as Map) + ..stargazers = json['stargazers'] == null + ? null + : GhUsersStargazerConnection.fromJson( + json['stargazers'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersRepositoryToJson(GhUsersRepository instance) => + { + 'watchers': instance.watchers?.toJson(), + 'stargazers': instance.stargazers?.toJson(), + '__typename': instance.resolveType, + }; + +GhUsersUserConnection _$GhUsersUserConnectionFromJson( + Map json) { + return GhUsersUserConnection() + ..pageInfo = json['pageInfo'] == null + ? null + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) + ..nodes = (json['nodes'] as List) + ?.map((e) => + e == null ? null : GhUsersUser.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhUsersUserConnectionToJson( + GhUsersUserConnection instance) => + { + 'pageInfo': instance.pageInfo?.toJson(), + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhUsersStargazerConnection _$GhUsersStargazerConnectionFromJson( + Map json) { + return GhUsersStargazerConnection() + ..pageInfo = json['pageInfo'] == null + ? null + : GhUsersPageInfo.fromJson(json['pageInfo'] as Map) + ..nodes = (json['nodes'] as List) + ?.map((e) => + e == null ? null : GhUsersUser.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhUsersStargazerConnectionToJson( + GhUsersStargazerConnection instance) => + { + 'pageInfo': instance.pageInfo?.toJson(), + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhUsersPinnableItem _$GhUsersPinnableItemFromJson(Map json) { + return GhUsersPinnableItem(); +} + +Map _$GhUsersPinnableItemToJson( + GhUsersPinnableItem instance) => + {}; + +GhUsersSubscribable _$GhUsersSubscribableFromJson(Map json) { + return GhUsersSubscribable()..resolveType = json['__typename'] as String; +} + +Map _$GhUsersSubscribableToJson( + GhUsersSubscribable instance) => + { + '__typename': instance.resolveType, + }; + +GhUsersStarrable _$GhUsersStarrableFromJson(Map json) { + return GhUsersStarrable() + ..stargazers = json['stargazers'] == null + ? null + : GhUsersStargazerConnection.fromJson( + json['stargazers'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhUsersStarrableToJson(GhUsersStarrable instance) => + { + 'stargazers': instance.stargazers?.toJson(), + '__typename': instance.resolveType, + }; + +GhUsersRepositoryInfo _$GhUsersRepositoryInfoFromJson( + Map json) { + return GhUsersRepositoryInfo()..resolveType = json['__typename'] as String; +} + +Map _$GhUsersRepositoryInfoToJson( + GhUsersRepositoryInfo instance) => + { + '__typename': instance.resolveType, + }; + +GhUsersArguments _$GhUsersArgumentsFromJson(Map json) { + return GhUsersArguments( + login: json['login'] as String, + repoName: json['repoName'] as String, + after: json['after'] as String, + isFollowers: json['isFollowers'] as bool, + isFollowing: json['isFollowing'] as bool, + isMember: json['isMember'] as bool, + isStar: json['isStar'] as bool, + isWatch: json['isWatch'] as bool, + ); +} + +Map _$GhUsersArgumentsToJson(GhUsersArguments instance) => + { + 'login': instance.login, + 'repoName': instance.repoName, + 'after': instance.after, + 'isFollowers': instance.isFollowers, + 'isFollowing': instance.isFollowing, + 'isMember': instance.isMember, + 'isStar': instance.isStar, + 'isWatch': instance.isWatch, + }; + +GhRepos _$GhReposFromJson(Map json) { + return GhRepos() + ..repositoryOwner = json['repositoryOwner'] == null + ? null + : GhReposRepositoryOwner.fromJson( + json['repositoryOwner'] as Map); +} + +Map _$GhReposToJson(GhRepos instance) => { + 'repositoryOwner': instance.repositoryOwner?.toJson(), + }; + +GhReposRepositoryOwner _$GhReposRepositoryOwnerFromJson( + Map json) { + return GhReposRepositoryOwner() + ..login = json['login'] as String + ..avatarUrl = json['avatarUrl'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhReposRepositoryOwnerToJson( + GhReposRepositoryOwner instance) => + { + 'login': instance.login, + 'avatarUrl': instance.avatarUrl, + '__typename': instance.resolveType, + }; + +GhReposUser _$GhReposUserFromJson(Map json) { + return GhReposUser() + ..repositories = json['repositories'] == null + ? null + : GhReposRepositoryConnection.fromJson( + json['repositories'] as Map) + ..starredRepositories = json['starredRepositories'] == null + ? null + : GhReposStarredRepositoryConnection.fromJson( + json['starredRepositories'] as Map) + ..resolveType = json['__typename'] as String + ..login = json['login'] as String + ..avatarUrl = json['avatarUrl'] as String; +} + +Map _$GhReposUserToJson(GhReposUser instance) => + { + 'repositories': instance.repositories?.toJson(), + 'starredRepositories': instance.starredRepositories?.toJson(), + '__typename': instance.resolveType, + 'login': instance.login, + 'avatarUrl': instance.avatarUrl, + }; + +GhReposRepositoryConnection _$GhReposRepositoryConnectionFromJson( + Map json) { + return GhReposRepositoryConnection() + ..totalCount = json['totalCount'] as int + ..pageInfo = json['pageInfo'] == null + ? null + : GhReposPageInfo.fromJson(json['pageInfo'] as Map) + ..nodes = (json['nodes'] as List) + ?.map((e) => e == null + ? null + : GhReposRepository.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhReposRepositoryConnectionToJson( + GhReposRepositoryConnection instance) => + { + 'totalCount': instance.totalCount, + 'pageInfo': instance.pageInfo?.toJson(), + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhReposPageInfo _$GhReposPageInfoFromJson(Map json) { + return GhReposPageInfo() + ..hasNextPage = json['hasNextPage'] as bool + ..endCursor = json['endCursor'] as String; +} + +Map _$GhReposPageInfoToJson(GhReposPageInfo instance) => + { + 'hasNextPage': instance.hasNextPage, + 'endCursor': instance.endCursor, + }; + +GhReposRepository _$GhReposRepositoryFromJson(Map json) { + return GhReposRepository() + ..owner = json['owner'] == null + ? null + : GhReposRepositoryOwner.fromJson(json['owner'] as Map) + ..name = json['name'] as String + ..description = json['description'] as String + ..isPrivate = json['isPrivate'] as bool + ..isFork = json['isFork'] as bool + ..stargazers = json['stargazers'] == null + ? null + : GhReposStargazerConnection.fromJson( + json['stargazers'] as Map) + ..forks = json['forks'] == null + ? null + : GhReposRepositoryConnection.fromJson( + json['forks'] as Map) + ..primaryLanguage = json['primaryLanguage'] == null + ? null + : GhReposLanguage.fromJson( + json['primaryLanguage'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhReposRepositoryToJson(GhReposRepository instance) => + { + 'owner': instance.owner?.toJson(), + 'name': instance.name, + 'description': instance.description, + 'isPrivate': instance.isPrivate, + 'isFork': instance.isFork, + 'stargazers': instance.stargazers?.toJson(), + 'forks': instance.forks?.toJson(), + 'primaryLanguage': instance.primaryLanguage?.toJson(), + '__typename': instance.resolveType, + }; + +GhReposStargazerConnection _$GhReposStargazerConnectionFromJson( + Map json) { + return GhReposStargazerConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhReposStargazerConnectionToJson( + GhReposStargazerConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhReposLanguage _$GhReposLanguageFromJson(Map json) { + return GhReposLanguage() + ..color = json['color'] as String + ..name = json['name'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhReposLanguageToJson(GhReposLanguage instance) => + { + 'color': instance.color, + 'name': instance.name, + '__typename': instance.resolveType, + }; + +GhReposNode _$GhReposNodeFromJson(Map json) { + return GhReposNode()..resolveType = json['__typename'] as String; +} + +Map _$GhReposNodeToJson(GhReposNode instance) => + { + '__typename': instance.resolveType, + }; + +GhReposPinnableItem _$GhReposPinnableItemFromJson(Map json) { + return GhReposPinnableItem(); +} + +Map _$GhReposPinnableItemToJson( + GhReposPinnableItem instance) => + {}; + +GhReposProjectOwner _$GhReposProjectOwnerFromJson(Map json) { + return GhReposProjectOwner()..resolveType = json['__typename'] as String; +} + +Map _$GhReposProjectOwnerToJson( + GhReposProjectOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhReposRegistryPackageOwner _$GhReposRegistryPackageOwnerFromJson( + Map json) { + return GhReposRegistryPackageOwner() + ..resolveType = json['__typename'] as String; +} + +Map _$GhReposRegistryPackageOwnerToJson( + GhReposRegistryPackageOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhReposRegistryPackageSearch _$GhReposRegistryPackageSearchFromJson( + Map json) { + return GhReposRegistryPackageSearch() + ..resolveType = json['__typename'] as String; +} + +Map _$GhReposRegistryPackageSearchToJson( + GhReposRegistryPackageSearch instance) => + { + '__typename': instance.resolveType, + }; + +GhReposSubscribable _$GhReposSubscribableFromJson(Map json) { + return GhReposSubscribable()..resolveType = json['__typename'] as String; +} + +Map _$GhReposSubscribableToJson( + GhReposSubscribable instance) => + { + '__typename': instance.resolveType, + }; + +GhReposStarrable _$GhReposStarrableFromJson(Map json) { + return GhReposStarrable() + ..stargazers = json['stargazers'] == null + ? null + : GhReposStargazerConnection.fromJson( + json['stargazers'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhReposStarrableToJson(GhReposStarrable instance) => + { + 'stargazers': instance.stargazers?.toJson(), + '__typename': instance.resolveType, + }; + +GhReposUniformResourceLocatable _$GhReposUniformResourceLocatableFromJson( + Map json) { + return GhReposUniformResourceLocatable() + ..resolveType = json['__typename'] as String; +} + +Map _$GhReposUniformResourceLocatableToJson( + GhReposUniformResourceLocatable instance) => + { + '__typename': instance.resolveType, + }; + +GhReposRepositoryInfo _$GhReposRepositoryInfoFromJson( + Map json) { + return GhReposRepositoryInfo() + ..owner = json['owner'] == null + ? null + : GhReposRepositoryOwner.fromJson(json['owner'] as Map) + ..name = json['name'] as String + ..description = json['description'] as String + ..isPrivate = json['isPrivate'] as bool + ..isFork = json['isFork'] as bool + ..resolveType = json['__typename'] as String; +} + +Map _$GhReposRepositoryInfoToJson( + GhReposRepositoryInfo instance) => + { + 'owner': instance.owner?.toJson(), + 'name': instance.name, + 'description': instance.description, + 'isPrivate': instance.isPrivate, + 'isFork': instance.isFork, + '__typename': instance.resolveType, + }; + +GhReposStarredRepositoryConnection _$GhReposStarredRepositoryConnectionFromJson( + Map json) { + return GhReposStarredRepositoryConnection() + ..pageInfo = json['pageInfo'] == null + ? null + : GhReposPageInfo.fromJson(json['pageInfo'] as Map) + ..nodes = (json['nodes'] as List) + ?.map((e) => e == null + ? null + : GhReposRepository.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhReposStarredRepositoryConnectionToJson( + GhReposStarredRepositoryConnection instance) => + { + 'pageInfo': instance.pageInfo?.toJson(), + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhReposAuditEntryActor _$GhReposAuditEntryActorFromJson( + Map json) { + return GhReposAuditEntryActor(); +} + +Map _$GhReposAuditEntryActorToJson( + GhReposAuditEntryActor instance) => + {}; + +GhReposActor _$GhReposActorFromJson(Map json) { + return GhReposActor()..resolveType = json['__typename'] as String; +} + +Map _$GhReposActorToJson(GhReposActor instance) => + { + '__typename': instance.resolveType, + }; + +GhReposProfileOwner _$GhReposProfileOwnerFromJson(Map json) { + return GhReposProfileOwner()..resolveType = json['__typename'] as String; +} + +Map _$GhReposProfileOwnerToJson( + GhReposProfileOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhReposSponsorable _$GhReposSponsorableFromJson(Map json) { + return GhReposSponsorable()..resolveType = json['__typename'] as String; +} + +Map _$GhReposSponsorableToJson(GhReposSponsorable instance) => + { + '__typename': instance.resolveType, + }; + +GhReposOrganization _$GhReposOrganizationFromJson(Map json) { + return GhReposOrganization() + ..pinnableItems = json['pinnableItems'] == null + ? null + : GhReposPinnableItemConnection.fromJson( + json['pinnableItems'] as Map) + ..resolveType = json['__typename'] as String + ..login = json['login'] as String + ..avatarUrl = json['avatarUrl'] as String; +} + +Map _$GhReposOrganizationToJson( + GhReposOrganization instance) => + { + 'pinnableItems': instance.pinnableItems?.toJson(), + '__typename': instance.resolveType, + 'login': instance.login, + 'avatarUrl': instance.avatarUrl, + }; + +GhReposPinnableItemConnection _$GhReposPinnableItemConnectionFromJson( + Map json) { + return GhReposPinnableItemConnection() + ..pageInfo = json['pageInfo'] == null + ? null + : GhReposPageInfo.fromJson(json['pageInfo'] as Map) + ..nodes = (json['nodes'] as List) + ?.map((e) => e == null + ? null + : GhReposPinnableItem.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhReposPinnableItemConnectionToJson( + GhReposPinnableItemConnection instance) => + { + 'pageInfo': instance.pageInfo?.toJson(), + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhReposMemberStatusable _$GhReposMemberStatusableFromJson( + Map json) { + return GhReposMemberStatusable()..resolveType = json['__typename'] as String; +} + +Map _$GhReposMemberStatusableToJson( + GhReposMemberStatusable instance) => + { + '__typename': instance.resolveType, + }; + +GhReposArguments _$GhReposArgumentsFromJson(Map json) { + return GhReposArguments( + owner: json['owner'] as String, + after: json['after'] as String, + isStar: json['isStar'] as bool, + ); +} + +Map _$GhReposArgumentsToJson(GhReposArguments instance) => + { + 'owner': instance.owner, + 'after': instance.after, + 'isStar': instance.isStar, + }; + +GhUser _$GhUserFromJson(Map json) { + return GhUser() + ..repositoryOwner = json['repositoryOwner'] == null + ? null + : GhUserRepositoryOwner.fromJson( + json['repositoryOwner'] as Map) + ..viewer = json['viewer'] == null + ? null + : GhUserUser.fromJson(json['viewer'] as Map); +} + +Map _$GhUserToJson(GhUser instance) => { + 'repositoryOwner': instance.repositoryOwner?.toJson(), + 'viewer': instance.viewer?.toJson(), + }; + +GhUserRepositoryOwner _$GhUserRepositoryOwnerFromJson( + Map json) { + return GhUserRepositoryOwner() + ..login = json['login'] as String + ..avatarUrl = json['avatarUrl'] as String + ..url = json['url'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhUserRepositoryOwnerToJson( + GhUserRepositoryOwner instance) => + { + 'login': instance.login, + 'avatarUrl': instance.avatarUrl, + 'url': instance.url, + '__typename': instance.resolveType, + }; + +GhUserUser _$GhUserUserFromJson(Map json) { + return GhUserUser() + ..name = json['name'] as String + ..bio = json['bio'] as String + ..company = json['company'] as String + ..location = json['location'] as String + ..email = json['email'] as String + ..createdAt = json['createdAt'] == null + ? null + : DateTime.parse(json['createdAt'] as String) + ..websiteUrl = json['websiteUrl'] as String + ..starredRepositories = json['starredRepositories'] == null + ? null + : GhUserStarredRepositoryConnection.fromJson( + json['starredRepositories'] as Map) + ..followers = json['followers'] == null + ? null + : GhUserFollowerConnection.fromJson( + json['followers'] as Map) + ..following = json['following'] == null + ? null + : GhUserFollowingConnection.fromJson( + json['following'] as Map) + ..contributionsCollection = json['contributionsCollection'] == null + ? null + : GhUserContributionsCollection.fromJson( + json['contributionsCollection'] as Map) + ..repositories = json['repositories'] == null + ? null + : GhUserRepositoryConnection.fromJson( + json['repositories'] as Map) + ..pinnedItems = json['pinnedItems'] == null + ? null + : GhUserPinnableItemConnection.fromJson( + json['pinnedItems'] as Map) + ..viewerCanFollow = json['viewerCanFollow'] as bool + ..viewerIsFollowing = json['viewerIsFollowing'] as bool + ..resolveType = json['__typename'] as String + ..login = json['login'] as String + ..avatarUrl = json['avatarUrl'] as String + ..url = json['url'] as String; +} + +Map _$GhUserUserToJson(GhUserUser instance) => + { + 'name': instance.name, + 'bio': instance.bio, + 'company': instance.company, + 'location': instance.location, + 'email': instance.email, + 'createdAt': instance.createdAt?.toIso8601String(), + 'websiteUrl': instance.websiteUrl, + 'starredRepositories': instance.starredRepositories?.toJson(), + 'followers': instance.followers?.toJson(), + 'following': instance.following?.toJson(), + 'contributionsCollection': instance.contributionsCollection?.toJson(), + 'repositories': instance.repositories?.toJson(), + 'pinnedItems': instance.pinnedItems?.toJson(), + 'viewerCanFollow': instance.viewerCanFollow, + 'viewerIsFollowing': instance.viewerIsFollowing, + '__typename': instance.resolveType, + 'login': instance.login, + 'avatarUrl': instance.avatarUrl, + 'url': instance.url, + }; + +GhUserStarredRepositoryConnection _$GhUserStarredRepositoryConnectionFromJson( + Map json) { + return GhUserStarredRepositoryConnection() + ..totalCount = json['totalCount'] as int; +} + +Map _$GhUserStarredRepositoryConnectionToJson( + GhUserStarredRepositoryConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhUserFollowerConnection _$GhUserFollowerConnectionFromJson( + Map json) { + return GhUserFollowerConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhUserFollowerConnectionToJson( + GhUserFollowerConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhUserFollowingConnection _$GhUserFollowingConnectionFromJson( + Map json) { + return GhUserFollowingConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhUserFollowingConnectionToJson( + GhUserFollowingConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhUserContributionsCollection _$GhUserContributionsCollectionFromJson( + Map json) { + return GhUserContributionsCollection() + ..contributionCalendar = json['contributionCalendar'] == null + ? null + : GhUserContributionCalendar.fromJson( + json['contributionCalendar'] as Map); +} + +Map _$GhUserContributionsCollectionToJson( + GhUserContributionsCollection instance) => + { + 'contributionCalendar': instance.contributionCalendar?.toJson(), + }; + +GhUserContributionCalendar _$GhUserContributionCalendarFromJson( + Map json) { + return GhUserContributionCalendar() + ..weeks = (json['weeks'] as List) + ?.map((e) => e == null + ? null + : GhUserContributionCalendarWeek.fromJson( + e as Map)) + ?.toList(); +} + +Map _$GhUserContributionCalendarToJson( + GhUserContributionCalendar instance) => + { + 'weeks': instance.weeks?.map((e) => e?.toJson())?.toList(), + }; + +GhUserContributionCalendarWeek _$GhUserContributionCalendarWeekFromJson( + Map json) { + return GhUserContributionCalendarWeek() + ..contributionDays = (json['contributionDays'] as List) + ?.map((e) => e == null + ? null + : GhUserContributionCalendarDay.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhUserContributionCalendarWeekToJson( + GhUserContributionCalendarWeek instance) => + { + 'contributionDays': + instance.contributionDays?.map((e) => e?.toJson())?.toList(), + }; + +GhUserContributionCalendarDay _$GhUserContributionCalendarDayFromJson( + Map json) { + return GhUserContributionCalendarDay()..color = json['color'] as String; +} + +Map _$GhUserContributionCalendarDayToJson( + GhUserContributionCalendarDay instance) => + { + 'color': instance.color, + }; + +GhUserRepositoryConnection _$GhUserRepositoryConnectionFromJson( + Map json) { + return GhUserRepositoryConnection() + ..totalCount = json['totalCount'] as int + ..nodes = (json['nodes'] as List) + ?.map((e) => e == null + ? null + : GhUserRepository.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhUserRepositoryConnectionToJson( + GhUserRepositoryConnection instance) => + { + 'totalCount': instance.totalCount, + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhUserRepository _$GhUserRepositoryFromJson(Map json) { + return GhUserRepository() + ..owner = json['owner'] == null + ? null + : GhUserRepositoryOwner.fromJson(json['owner'] as Map) + ..name = json['name'] as String + ..description = json['description'] as String + ..isPrivate = json['isPrivate'] as bool + ..isFork = json['isFork'] as bool + ..stargazers = json['stargazers'] == null + ? null + : GhUserStargazerConnection.fromJson( + json['stargazers'] as Map) + ..forks = json['forks'] == null + ? null + : GhUserRepositoryConnection.fromJson( + json['forks'] as Map) + ..primaryLanguage = json['primaryLanguage'] == null + ? null + : GhUserLanguage.fromJson( + json['primaryLanguage'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhUserRepositoryToJson(GhUserRepository instance) => + { + 'owner': instance.owner?.toJson(), + 'name': instance.name, + 'description': instance.description, + 'isPrivate': instance.isPrivate, + 'isFork': instance.isFork, + 'stargazers': instance.stargazers?.toJson(), + 'forks': instance.forks?.toJson(), + 'primaryLanguage': instance.primaryLanguage?.toJson(), + '__typename': instance.resolveType, + }; + +GhUserStargazerConnection _$GhUserStargazerConnectionFromJson( + Map json) { + return GhUserStargazerConnection()..totalCount = json['totalCount'] as int; +} + +Map _$GhUserStargazerConnectionToJson( + GhUserStargazerConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhUserLanguage _$GhUserLanguageFromJson(Map json) { + return GhUserLanguage() + ..color = json['color'] as String + ..name = json['name'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhUserLanguageToJson(GhUserLanguage instance) => + { + 'color': instance.color, + 'name': instance.name, + '__typename': instance.resolveType, + }; + +GhUserNode _$GhUserNodeFromJson(Map json) { + return GhUserNode()..resolveType = json['__typename'] as String; +} + +Map _$GhUserNodeToJson(GhUserNode instance) => + { + '__typename': instance.resolveType, + }; + +GhUserPinnableItem _$GhUserPinnableItemFromJson(Map json) { + return GhUserPinnableItem(); +} + +Map _$GhUserPinnableItemToJson(GhUserPinnableItem instance) => + {}; + +GhUserProjectOwner _$GhUserProjectOwnerFromJson(Map json) { + return GhUserProjectOwner()..resolveType = json['__typename'] as String; +} + +Map _$GhUserProjectOwnerToJson(GhUserProjectOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhUserRegistryPackageOwner _$GhUserRegistryPackageOwnerFromJson( + Map json) { + return GhUserRegistryPackageOwner() + ..resolveType = json['__typename'] as String; +} + +Map _$GhUserRegistryPackageOwnerToJson( + GhUserRegistryPackageOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhUserRegistryPackageSearch _$GhUserRegistryPackageSearchFromJson( + Map json) { + return GhUserRegistryPackageSearch() + ..resolveType = json['__typename'] as String; +} + +Map _$GhUserRegistryPackageSearchToJson( + GhUserRegistryPackageSearch instance) => + { + '__typename': instance.resolveType, + }; + +GhUserSubscribable _$GhUserSubscribableFromJson(Map json) { + return GhUserSubscribable()..resolveType = json['__typename'] as String; +} + +Map _$GhUserSubscribableToJson(GhUserSubscribable instance) => + { + '__typename': instance.resolveType, + }; + +GhUserStarrable _$GhUserStarrableFromJson(Map json) { + return GhUserStarrable() + ..stargazers = json['stargazers'] == null + ? null + : GhUserStargazerConnection.fromJson( + json['stargazers'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhUserStarrableToJson(GhUserStarrable instance) => + { + 'stargazers': instance.stargazers?.toJson(), + '__typename': instance.resolveType, + }; + +GhUserUniformResourceLocatable _$GhUserUniformResourceLocatableFromJson( + Map json) { + return GhUserUniformResourceLocatable() + ..resolveType = json['__typename'] as String; +} + +Map _$GhUserUniformResourceLocatableToJson( + GhUserUniformResourceLocatable instance) => + { + '__typename': instance.resolveType, + }; + +GhUserRepositoryInfo _$GhUserRepositoryInfoFromJson(Map json) { + return GhUserRepositoryInfo() + ..owner = json['owner'] == null + ? null + : GhUserRepositoryOwner.fromJson(json['owner'] as Map) + ..name = json['name'] as String + ..description = json['description'] as String + ..isPrivate = json['isPrivate'] as bool + ..isFork = json['isFork'] as bool + ..resolveType = json['__typename'] as String; +} + +Map _$GhUserRepositoryInfoToJson( + GhUserRepositoryInfo instance) => + { + 'owner': instance.owner?.toJson(), + 'name': instance.name, + 'description': instance.description, + 'isPrivate': instance.isPrivate, + 'isFork': instance.isFork, + '__typename': instance.resolveType, + }; + +GhUserPinnableItemConnection _$GhUserPinnableItemConnectionFromJson( + Map json) { + return GhUserPinnableItemConnection() + ..totalCount = json['totalCount'] as int + ..nodes = (json['nodes'] as List) + ?.map((e) => e == null + ? null + : GhUserPinnableItem.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhUserPinnableItemConnectionToJson( + GhUserPinnableItemConnection instance) => + { + 'totalCount': instance.totalCount, + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhUserAuditEntryActor _$GhUserAuditEntryActorFromJson( + Map json) { + return GhUserAuditEntryActor(); +} + +Map _$GhUserAuditEntryActorToJson( + GhUserAuditEntryActor instance) => + {}; + +GhUserActor _$GhUserActorFromJson(Map json) { + return GhUserActor()..resolveType = json['__typename'] as String; +} + +Map _$GhUserActorToJson(GhUserActor instance) => + { + '__typename': instance.resolveType, + }; + +GhUserProfileOwner _$GhUserProfileOwnerFromJson(Map json) { + return GhUserProfileOwner() + ..name = json['name'] as String + ..location = json['location'] as String + ..email = json['email'] as String + ..websiteUrl = json['websiteUrl'] as String + ..pinnedItems = json['pinnedItems'] == null + ? null + : GhUserPinnableItemConnection.fromJson( + json['pinnedItems'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhUserProfileOwnerToJson(GhUserProfileOwner instance) => + { + 'name': instance.name, + 'location': instance.location, + 'email': instance.email, + 'websiteUrl': instance.websiteUrl, + 'pinnedItems': instance.pinnedItems?.toJson(), + '__typename': instance.resolveType, + }; + +GhUserSponsorable _$GhUserSponsorableFromJson(Map json) { + return GhUserSponsorable()..resolveType = json['__typename'] as String; +} + +Map _$GhUserSponsorableToJson(GhUserSponsorable instance) => + { + '__typename': instance.resolveType, + }; + +GhUserOrganization _$GhUserOrganizationFromJson(Map json) { + return GhUserOrganization() + ..name = json['name'] as String + ..description = json['description'] as String + ..location = json['location'] as String + ..email = json['email'] as String + ..websiteUrl = json['websiteUrl'] as String + ..createdAt = json['createdAt'] == null + ? null + : DateTime.parse(json['createdAt'] as String) + ..pinnedItems = json['pinnedItems'] == null + ? null + : GhUserPinnableItemConnection.fromJson( + json['pinnedItems'] as Map) + ..pinnableItems = json['pinnableItems'] == null + ? null + : GhUserPinnableItemConnection.fromJson( + json['pinnableItems'] as Map) + ..membersWithRole = json['membersWithRole'] == null + ? null + : GhUserOrganizationMemberConnection.fromJson( + json['membersWithRole'] as Map) + ..resolveType = json['__typename'] as String + ..login = json['login'] as String + ..avatarUrl = json['avatarUrl'] as String + ..url = json['url'] as String; +} + +Map _$GhUserOrganizationToJson(GhUserOrganization instance) => + { + 'name': instance.name, + 'description': instance.description, + 'location': instance.location, + 'email': instance.email, + 'websiteUrl': instance.websiteUrl, + 'createdAt': instance.createdAt?.toIso8601String(), + 'pinnedItems': instance.pinnedItems?.toJson(), + 'pinnableItems': instance.pinnableItems?.toJson(), + 'membersWithRole': instance.membersWithRole?.toJson(), + '__typename': instance.resolveType, + 'login': instance.login, + 'avatarUrl': instance.avatarUrl, + 'url': instance.url, + }; + +GhUserOrganizationMemberConnection _$GhUserOrganizationMemberConnectionFromJson( + Map json) { + return GhUserOrganizationMemberConnection() + ..totalCount = json['totalCount'] as int; +} + +Map _$GhUserOrganizationMemberConnectionToJson( + GhUserOrganizationMemberConnection instance) => + { + 'totalCount': instance.totalCount, + }; + +GhUserMemberStatusable _$GhUserMemberStatusableFromJson( + Map json) { + return GhUserMemberStatusable()..resolveType = json['__typename'] as String; +} + +Map _$GhUserMemberStatusableToJson( + GhUserMemberStatusable instance) => + { + '__typename': instance.resolveType, + }; + +GhUserArguments _$GhUserArgumentsFromJson(Map json) { + return GhUserArguments( + login: json['login'] as String, + isViewer: json['isViewer'] as bool, + ); +} + +Map _$GhUserArgumentsToJson(GhUserArguments instance) => + { + 'login': instance.login, + 'isViewer': instance.isViewer, + }; + +GhObject _$GhObjectFromJson(Map json) { + return GhObject() + ..repository = json['repository'] == null + ? null + : GhObjectRepository.fromJson( + json['repository'] as Map); +} + +Map _$GhObjectToJson(GhObject instance) => { + 'repository': instance.repository?.toJson(), + }; + +GhObjectRepository _$GhObjectRepositoryFromJson(Map json) { + return GhObjectRepository() + ..object = json['object'] == null + ? null + : GhObjectGitObject.fromJson(json['object'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhObjectRepositoryToJson(GhObjectRepository instance) => + { + 'object': instance.object?.toJson(), + '__typename': instance.resolveType, + }; + +GhObjectGitObject _$GhObjectGitObjectFromJson(Map json) { + return GhObjectGitObject()..resolveType = json['__typename'] as String; +} + +Map _$GhObjectGitObjectToJson(GhObjectGitObject instance) => + { + '__typename': instance.resolveType, + }; + +GhObjectTree _$GhObjectTreeFromJson(Map json) { + return GhObjectTree() + ..entries = (json['entries'] as List) + ?.map((e) => e == null + ? null + : GhObjectTreeEntry.fromJson(e as Map)) + ?.toList() + ..resolveType = json['__typename'] as String; +} + +Map _$GhObjectTreeToJson(GhObjectTree instance) => + { + 'entries': instance.entries?.map((e) => e?.toJson())?.toList(), + '__typename': instance.resolveType, + }; + +GhObjectTreeEntry _$GhObjectTreeEntryFromJson(Map json) { + return GhObjectTreeEntry() + ..type = json['type'] as String + ..name = json['name'] as String; +} + +Map _$GhObjectTreeEntryToJson(GhObjectTreeEntry instance) => + { + 'type': instance.type, + 'name': instance.name, + }; + +GhObjectNode _$GhObjectNodeFromJson(Map json) { + return GhObjectNode()..resolveType = json['__typename'] as String; +} + +Map _$GhObjectNodeToJson(GhObjectNode instance) => + { + '__typename': instance.resolveType, + }; + +GhObjectBlob _$GhObjectBlobFromJson(Map json) { + return GhObjectBlob() + ..text = json['text'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhObjectBlobToJson(GhObjectBlob instance) => + { + 'text': instance.text, + '__typename': instance.resolveType, + }; + +GhObjectPinnableItem _$GhObjectPinnableItemFromJson(Map json) { + return GhObjectPinnableItem(); +} + +Map _$GhObjectPinnableItemToJson( + GhObjectPinnableItem instance) => + {}; + +GhObjectProjectOwner _$GhObjectProjectOwnerFromJson(Map json) { + return GhObjectProjectOwner()..resolveType = json['__typename'] as String; +} + +Map _$GhObjectProjectOwnerToJson( + GhObjectProjectOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhObjectRegistryPackageOwner _$GhObjectRegistryPackageOwnerFromJson( + Map json) { + return GhObjectRegistryPackageOwner() + ..resolveType = json['__typename'] as String; +} + +Map _$GhObjectRegistryPackageOwnerToJson( + GhObjectRegistryPackageOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhObjectRegistryPackageSearch _$GhObjectRegistryPackageSearchFromJson( + Map json) { + return GhObjectRegistryPackageSearch() + ..resolveType = json['__typename'] as String; +} + +Map _$GhObjectRegistryPackageSearchToJson( + GhObjectRegistryPackageSearch instance) => + { + '__typename': instance.resolveType, + }; + +GhObjectSubscribable _$GhObjectSubscribableFromJson(Map json) { + return GhObjectSubscribable()..resolveType = json['__typename'] as String; +} + +Map _$GhObjectSubscribableToJson( + GhObjectSubscribable instance) => + { + '__typename': instance.resolveType, + }; + +GhObjectStarrable _$GhObjectStarrableFromJson(Map json) { + return GhObjectStarrable()..resolveType = json['__typename'] as String; +} + +Map _$GhObjectStarrableToJson(GhObjectStarrable instance) => + { + '__typename': instance.resolveType, + }; + +GhObjectUniformResourceLocatable _$GhObjectUniformResourceLocatableFromJson( + Map json) { + return GhObjectUniformResourceLocatable() + ..resolveType = json['__typename'] as String; +} + +Map _$GhObjectUniformResourceLocatableToJson( + GhObjectUniformResourceLocatable instance) => + { + '__typename': instance.resolveType, + }; + +GhObjectRepositoryInfo _$GhObjectRepositoryInfoFromJson( + Map json) { + return GhObjectRepositoryInfo()..resolveType = json['__typename'] as String; +} + +Map _$GhObjectRepositoryInfoToJson( + GhObjectRepositoryInfo instance) => + { + '__typename': instance.resolveType, + }; + +GhObjectArguments _$GhObjectArgumentsFromJson(Map json) { + return GhObjectArguments( + owner: json['owner'] as String, + name: json['name'] as String, + expression: json['expression'] as String, + ); +} + +Map _$GhObjectArgumentsToJson(GhObjectArguments instance) => + { + 'owner': instance.owner, + 'name': instance.name, + 'expression': instance.expression, + }; + +GhCommits _$GhCommitsFromJson(Map json) { + return GhCommits() + ..repository = json['repository'] == null + ? null + : GhCommitsRepository.fromJson( + json['repository'] as Map); +} + +Map _$GhCommitsToJson(GhCommits instance) => { + 'repository': instance.repository?.toJson(), + }; + +GhCommitsRepository _$GhCommitsRepositoryFromJson(Map json) { + return GhCommitsRepository() + ..defaultBranchRef = json['defaultBranchRef'] == null + ? null + : GhCommitsRef.fromJson( + json['defaultBranchRef'] as Map) + ..ref = json['ref'] == null + ? null + : GhCommitsRef.fromJson(json['ref'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsRepositoryToJson( + GhCommitsRepository instance) => + { + 'defaultBranchRef': instance.defaultBranchRef?.toJson(), + 'ref': instance.ref?.toJson(), + '__typename': instance.resolveType, + }; + +GhCommitsRef _$GhCommitsRefFromJson(Map json) { + return GhCommitsRef() + ..target = json['target'] == null + ? null + : GhCommitsGitObject.fromJson(json['target'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsRefToJson(GhCommitsRef instance) => + { + 'target': instance.target?.toJson(), + '__typename': instance.resolveType, + }; + +GhCommitsGitObject _$GhCommitsGitObjectFromJson(Map json) { + return GhCommitsGitObject()..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsGitObjectToJson(GhCommitsGitObject instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsCommit _$GhCommitsCommitFromJson(Map json) { + return GhCommitsCommit() + ..oid = json['oid'] as String + ..url = json['url'] as String + ..messageHeadline = json['messageHeadline'] as String + ..committedDate = json['committedDate'] == null + ? null + : DateTime.parse(json['committedDate'] as String) + ..author = json['author'] == null + ? null + : GhCommitsGitActor.fromJson(json['author'] as Map) + ..status = json['status'] == null + ? null + : GhCommitsStatus.fromJson(json['status'] as Map) + ..history = json['history'] == null + ? null + : GhCommitsCommitHistoryConnection.fromJson( + json['history'] as Map) + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsCommitToJson(GhCommitsCommit instance) => + { + 'oid': instance.oid, + 'url': instance.url, + 'messageHeadline': instance.messageHeadline, + 'committedDate': instance.committedDate?.toIso8601String(), + 'author': instance.author?.toJson(), + 'status': instance.status?.toJson(), + 'history': instance.history?.toJson(), + '__typename': instance.resolveType, + }; + +GhCommitsGitActor _$GhCommitsGitActorFromJson(Map json) { + return GhCommitsGitActor() + ..name = json['name'] as String + ..avatarUrl = json['avatarUrl'] as String + ..user = json['user'] == null + ? null + : GhCommitsUser.fromJson(json['user'] as Map); +} + +Map _$GhCommitsGitActorToJson(GhCommitsGitActor instance) => + { + 'name': instance.name, + 'avatarUrl': instance.avatarUrl, + 'user': instance.user?.toJson(), + }; + +GhCommitsUser _$GhCommitsUserFromJson(Map json) { + return GhCommitsUser() + ..login = json['login'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsUserToJson(GhCommitsUser instance) => + { + 'login': instance.login, + '__typename': instance.resolveType, + }; + +GhCommitsAuditEntryActor _$GhCommitsAuditEntryActorFromJson( + Map json) { + return GhCommitsAuditEntryActor(); +} + +Map _$GhCommitsAuditEntryActorToJson( + GhCommitsAuditEntryActor instance) => + {}; + +GhCommitsNode _$GhCommitsNodeFromJson(Map json) { + return GhCommitsNode()..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsNodeToJson(GhCommitsNode instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsActor _$GhCommitsActorFromJson(Map json) { + return GhCommitsActor() + ..login = json['login'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsActorToJson(GhCommitsActor instance) => + { + 'login': instance.login, + '__typename': instance.resolveType, + }; + +GhCommitsRegistryPackageOwner _$GhCommitsRegistryPackageOwnerFromJson( + Map json) { + return GhCommitsRegistryPackageOwner() + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsRegistryPackageOwnerToJson( + GhCommitsRegistryPackageOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsRegistryPackageSearch _$GhCommitsRegistryPackageSearchFromJson( + Map json) { + return GhCommitsRegistryPackageSearch() + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsRegistryPackageSearchToJson( + GhCommitsRegistryPackageSearch instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsProjectOwner _$GhCommitsProjectOwnerFromJson( + Map json) { + return GhCommitsProjectOwner()..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsProjectOwnerToJson( + GhCommitsProjectOwner instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsRepositoryOwner _$GhCommitsRepositoryOwnerFromJson( + Map json) { + return GhCommitsRepositoryOwner() + ..login = json['login'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsRepositoryOwnerToJson( + GhCommitsRepositoryOwner instance) => + { + 'login': instance.login, + '__typename': instance.resolveType, + }; + +GhCommitsUniformResourceLocatable _$GhCommitsUniformResourceLocatableFromJson( + Map json) { + return GhCommitsUniformResourceLocatable() + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsUniformResourceLocatableToJson( + GhCommitsUniformResourceLocatable instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsProfileOwner _$GhCommitsProfileOwnerFromJson( + Map json) { + return GhCommitsProfileOwner() + ..login = json['login'] as String + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsProfileOwnerToJson( + GhCommitsProfileOwner instance) => + { + 'login': instance.login, + '__typename': instance.resolveType, + }; + +GhCommitsSponsorable _$GhCommitsSponsorableFromJson(Map json) { + return GhCommitsSponsorable()..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsSponsorableToJson( + GhCommitsSponsorable instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsStatus _$GhCommitsStatusFromJson(Map json) { + return GhCommitsStatus() + ..state = _$enumDecodeNullable(_$GhCommitsStatusStateEnumMap, json['state']) + ..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsStatusToJson(GhCommitsStatus instance) => + { + 'state': _$GhCommitsStatusStateEnumMap[instance.state], + '__typename': instance.resolveType, + }; + +T _$enumDecode( + Map enumValues, + dynamic source, { + T unknownValue, +}) { + if (source == null) { + throw ArgumentError('A value must be provided. Supported values: ' + '${enumValues.values.join(', ')}'); + } + + final value = enumValues.entries + .singleWhere((e) => e.value == source, orElse: () => null) + ?.key; + + if (value == null && unknownValue == null) { + throw ArgumentError('`$source` is not one of the supported values: ' + '${enumValues.values.join(', ')}'); + } + return value ?? unknownValue; +} + +T _$enumDecodeNullable( + Map enumValues, + dynamic source, { + T unknownValue, +}) { + if (source == null) { + return null; + } + return _$enumDecode(enumValues, source, unknownValue: unknownValue); +} + +const _$GhCommitsStatusStateEnumMap = { + GhCommitsStatusState.EXPECTED: 'EXPECTED', + GhCommitsStatusState.ERROR: 'ERROR', + GhCommitsStatusState.FAILURE: 'FAILURE', + GhCommitsStatusState.PENDING: 'PENDING', + GhCommitsStatusState.SUCCESS: 'SUCCESS', +}; + +GhCommitsCommitHistoryConnection _$GhCommitsCommitHistoryConnectionFromJson( + Map json) { + return GhCommitsCommitHistoryConnection() + ..pageInfo = json['pageInfo'] == null + ? null + : GhCommitsPageInfo.fromJson(json['pageInfo'] as Map) + ..nodes = (json['nodes'] as List) + ?.map((e) => e == null + ? null + : GhCommitsCommit.fromJson(e as Map)) + ?.toList(); +} + +Map _$GhCommitsCommitHistoryConnectionToJson( + GhCommitsCommitHistoryConnection instance) => + { + 'pageInfo': instance.pageInfo?.toJson(), + 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), + }; + +GhCommitsPageInfo _$GhCommitsPageInfoFromJson(Map json) { + return GhCommitsPageInfo() + ..hasNextPage = json['hasNextPage'] as bool + ..endCursor = json['endCursor'] as String; +} + +Map _$GhCommitsPageInfoToJson(GhCommitsPageInfo instance) => + { + 'hasNextPage': instance.hasNextPage, + 'endCursor': instance.endCursor, + }; + +GhCommitsPullRequestTimelineItem _$GhCommitsPullRequestTimelineItemFromJson( + Map json) { + return GhCommitsPullRequestTimelineItem(); +} + +Map _$GhCommitsPullRequestTimelineItemToJson( + GhCommitsPullRequestTimelineItem instance) => + {}; + +GhCommitsSubscribable _$GhCommitsSubscribableFromJson( + Map json) { + return GhCommitsSubscribable()..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsSubscribableToJson( + GhCommitsSubscribable instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsPinnableItem _$GhCommitsPinnableItemFromJson( + Map json) { + return GhCommitsPinnableItem(); +} + +Map _$GhCommitsPinnableItemToJson( + GhCommitsPinnableItem instance) => + {}; + +GhCommitsStarrable _$GhCommitsStarrableFromJson(Map json) { + return GhCommitsStarrable()..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsStarrableToJson(GhCommitsStarrable instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsRepositoryInfo _$GhCommitsRepositoryInfoFromJson( + Map json) { + return GhCommitsRepositoryInfo()..resolveType = json['__typename'] as String; +} + +Map _$GhCommitsRepositoryInfoToJson( + GhCommitsRepositoryInfo instance) => + { + '__typename': instance.resolveType, + }; + +GhCommitsArguments _$GhCommitsArgumentsFromJson(Map json) { + return GhCommitsArguments( + owner: json['owner'] as String, + name: json['name'] as String, + ref: json['ref'] as String, + hasRef: json['hasRef'] as bool, + after: json['after'] as String, + ); +} + +Map _$GhCommitsArgumentsToJson(GhCommitsArguments instance) => + { + 'owner': instance.owner, + 'name': instance.name, + 'ref': instance.ref, + 'hasRef': instance.hasRef, + 'after': instance.after, + }; diff --git a/lib/graphql/github_commits.graphql b/lib/graphql/gh_commits.graphql similarity index 98% rename from lib/graphql/github_commits.graphql rename to lib/graphql/gh_commits.graphql index 742bcd3..63d108d 100644 --- a/lib/graphql/github_commits.graphql +++ b/lib/graphql/gh_commits.graphql @@ -42,7 +42,7 @@ fragment T on Ref { } } -query( +query GhCommits( $owner: String! $name: String! $ref: String! diff --git a/lib/graphql/github_object.graphql b/lib/graphql/gh_object.graphql similarity index 76% rename from lib/graphql/github_object.graphql rename to lib/graphql/gh_object.graphql index 15d754e..4088733 100644 --- a/lib/graphql/github_object.graphql +++ b/lib/graphql/gh_object.graphql @@ -1,4 +1,4 @@ -query($owner: String!, $name: String!, $expression: String!) { +query GhObject($owner: String!, $name: String!, $expression: String!) { repository(owner: $owner, name: $name) { object(expression: $expression) { __typename diff --git a/lib/graphql/github_repository.graphql b/lib/graphql/gh_repo.graphql similarity index 99% rename from lib/graphql/github_repository.graphql rename to lib/graphql/gh_repo.graphql index 01fb17d..f66522c 100644 --- a/lib/graphql/github_repository.graphql +++ b/lib/graphql/gh_repo.graphql @@ -1,4 +1,4 @@ -query( +query GhRepo( $owner: String! $name: String! $branchSpecified: Boolean! diff --git a/lib/graphql/github_repositories.graphql b/lib/graphql/gh_repos.graphql similarity index 96% rename from lib/graphql/github_repositories.graphql rename to lib/graphql/gh_repos.graphql index 5889caa..7418ef6 100644 --- a/lib/graphql/github_repositories.graphql +++ b/lib/graphql/gh_repos.graphql @@ -1,4 +1,4 @@ -query($owner: String!, $after: String, $isStar: Boolean!) { +query GhRepos($owner: String!, $after: String, $isStar: Boolean!) { repositoryOwner(login: $owner) { __typename login diff --git a/lib/graphql/github_user.graphql b/lib/graphql/gh_user.graphql similarity index 98% rename from lib/graphql/github_user.graphql rename to lib/graphql/gh_user.graphql index b1a83f8..b4506ec 100644 --- a/lib/graphql/github_user.graphql +++ b/lib/graphql/gh_user.graphql @@ -1,4 +1,4 @@ -query($login: String!, $isViewer: Boolean!) { +query GhUser($login: String!, $isViewer: Boolean!) { repositoryOwner(login: $login) @skip(if: $isViewer) { __typename login diff --git a/lib/graphql/github_users.graphql b/lib/graphql/gh_users.graphql similarity index 99% rename from lib/graphql/github_users.graphql rename to lib/graphql/gh_users.graphql index 7152717..5e2dd60 100644 --- a/lib/graphql/github_users.graphql +++ b/lib/graphql/gh_users.graphql @@ -1,4 +1,4 @@ -query( +query GhUsers( $login: String! $repoName: String! $after: String diff --git a/lib/graphql/github_commits.dart b/lib/graphql/github_commits.dart deleted file mode 100644 index d6e953b..0000000 --- a/lib/graphql/github_commits.dart +++ /dev/null @@ -1,828 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -import 'package:artemis/artemis.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:equatable/equatable.dart'; -import 'package:gql/ast.dart'; -part 'github_commits.g.dart'; - -mixin TMixin { - GithubCommitsGitObject target; -} - -@JsonSerializable(explicitToJson: true) -class GithubCommits with EquatableMixin { - GithubCommits(); - - factory GithubCommits.fromJson(Map json) => - _$GithubCommitsFromJson(json); - - GithubCommitsRepository repository; - - @override - List get props => [repository]; - Map toJson() => _$GithubCommitsToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsRepository extends GithubCommitsPinnableItem - with EquatableMixin - implements - GithubCommitsNode, - GithubCommitsProjectOwner, - GithubCommitsRegistryPackageOwner, - GithubCommitsRegistryPackageSearch, - GithubCommitsSubscribable, - GithubCommitsStarrable, - GithubCommitsUniformResourceLocatable, - GithubCommitsRepositoryInfo { - GithubCommitsRepository(); - - factory GithubCommitsRepository.fromJson(Map json) => - _$GithubCommitsRepositoryFromJson(json); - - GithubCommitsRef defaultBranchRef; - - GithubCommitsRef ref; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [defaultBranchRef, ref, resolveType]; - Map toJson() => _$GithubCommitsRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsRef - with EquatableMixin, TMixin - implements GithubCommitsNode { - GithubCommitsRef(); - - factory GithubCommitsRef.fromJson(Map json) => - _$GithubCommitsRefFromJson(json); - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [target, resolveType]; - Map toJson() => _$GithubCommitsRefToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsGitObject with EquatableMixin { - GithubCommitsGitObject(); - - factory GithubCommitsGitObject.fromJson(Map json) { - switch (json['__typename'].toString()) { - case 'Commit': - return GithubCommitsCommit.fromJson(json); - default: - } - return _$GithubCommitsGitObjectFromJson(json); - } - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() { - switch (resolveType) { - case 'Commit': - return (this as GithubCommitsCommit).toJson(); - default: - } - return _$GithubCommitsGitObjectToJson(this); - } -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsCommit extends GithubCommitsPullRequestTimelineItem - with EquatableMixin - implements - GithubCommitsNode, - GithubCommitsGitObject, - GithubCommitsSubscribable, - GithubCommitsUniformResourceLocatable { - GithubCommitsCommit(); - - factory GithubCommitsCommit.fromJson(Map json) => - _$GithubCommitsCommitFromJson(json); - - String oid; - - String url; - - String messageHeadline; - - DateTime committedDate; - - GithubCommitsGitActor author; - - GithubCommitsStatus status; - - GithubCommitsCommitHistoryConnection history; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [ - oid, - url, - messageHeadline, - committedDate, - author, - status, - history, - resolveType - ]; - Map toJson() => _$GithubCommitsCommitToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsGitActor with EquatableMixin { - GithubCommitsGitActor(); - - factory GithubCommitsGitActor.fromJson(Map json) => - _$GithubCommitsGitActorFromJson(json); - - String name; - - String avatarUrl; - - GithubCommitsUser user; - - @override - List get props => [name, avatarUrl, user]; - Map toJson() => _$GithubCommitsGitActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsUser extends GithubCommitsAuditEntryActor - with EquatableMixin - implements - GithubCommitsNode, - GithubCommitsActor, - GithubCommitsRegistryPackageOwner, - GithubCommitsRegistryPackageSearch, - GithubCommitsProjectOwner, - GithubCommitsRepositoryOwner, - GithubCommitsUniformResourceLocatable, - GithubCommitsProfileOwner, - GithubCommitsSponsorable { - GithubCommitsUser(); - - factory GithubCommitsUser.fromJson(Map json) => - _$GithubCommitsUserFromJson(json); - - @override - String login; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, resolveType]; - Map toJson() => _$GithubCommitsUserToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsAuditEntryActor with EquatableMixin { - GithubCommitsAuditEntryActor(); - - factory GithubCommitsAuditEntryActor.fromJson(Map json) => - _$GithubCommitsAuditEntryActorFromJson(json); - - @override - List get props => []; - Map toJson() => _$GithubCommitsAuditEntryActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsNode with EquatableMixin { - GithubCommitsNode(); - - factory GithubCommitsNode.fromJson(Map json) => - _$GithubCommitsNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubCommitsNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsActor with EquatableMixin { - GithubCommitsActor(); - - factory GithubCommitsActor.fromJson(Map json) => - _$GithubCommitsActorFromJson(json); - - String login; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, resolveType]; - Map toJson() => _$GithubCommitsActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsRegistryPackageOwner with EquatableMixin { - GithubCommitsRegistryPackageOwner(); - - factory GithubCommitsRegistryPackageOwner.fromJson( - Map json) => - _$GithubCommitsRegistryPackageOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubCommitsRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsRegistryPackageSearch with EquatableMixin { - GithubCommitsRegistryPackageSearch(); - - factory GithubCommitsRegistryPackageSearch.fromJson( - Map json) => - _$GithubCommitsRegistryPackageSearchFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubCommitsRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsProjectOwner with EquatableMixin { - GithubCommitsProjectOwner(); - - factory GithubCommitsProjectOwner.fromJson(Map json) => - _$GithubCommitsProjectOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubCommitsProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsRepositoryOwner with EquatableMixin { - GithubCommitsRepositoryOwner(); - - factory GithubCommitsRepositoryOwner.fromJson(Map json) => - _$GithubCommitsRepositoryOwnerFromJson(json); - - String login; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, resolveType]; - Map toJson() => _$GithubCommitsRepositoryOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsUniformResourceLocatable with EquatableMixin { - GithubCommitsUniformResourceLocatable(); - - factory GithubCommitsUniformResourceLocatable.fromJson( - Map json) => - _$GithubCommitsUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubCommitsUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsProfileOwner with EquatableMixin { - GithubCommitsProfileOwner(); - - factory GithubCommitsProfileOwner.fromJson(Map json) => - _$GithubCommitsProfileOwnerFromJson(json); - - String login; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, resolveType]; - Map toJson() => _$GithubCommitsProfileOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsSponsorable with EquatableMixin { - GithubCommitsSponsorable(); - - factory GithubCommitsSponsorable.fromJson(Map json) => - _$GithubCommitsSponsorableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubCommitsSponsorableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsStatus with EquatableMixin implements GithubCommitsNode { - GithubCommitsStatus(); - - factory GithubCommitsStatus.fromJson(Map json) => - _$GithubCommitsStatusFromJson(json); - - GithubCommitsStatusState state; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [state, resolveType]; - Map toJson() => _$GithubCommitsStatusToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsCommitHistoryConnection with EquatableMixin { - GithubCommitsCommitHistoryConnection(); - - factory GithubCommitsCommitHistoryConnection.fromJson( - Map json) => - _$GithubCommitsCommitHistoryConnectionFromJson(json); - - GithubCommitsPageInfo pageInfo; - - List nodes; - - @override - List get props => [pageInfo, nodes]; - Map toJson() => - _$GithubCommitsCommitHistoryConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsPageInfo with EquatableMixin { - GithubCommitsPageInfo(); - - factory GithubCommitsPageInfo.fromJson(Map json) => - _$GithubCommitsPageInfoFromJson(json); - - bool hasNextPage; - - String endCursor; - - @override - List get props => [hasNextPage, endCursor]; - Map toJson() => _$GithubCommitsPageInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsPullRequestTimelineItem with EquatableMixin { - GithubCommitsPullRequestTimelineItem(); - - factory GithubCommitsPullRequestTimelineItem.fromJson( - Map json) => - _$GithubCommitsPullRequestTimelineItemFromJson(json); - - @override - List get props => []; - Map toJson() => - _$GithubCommitsPullRequestTimelineItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsSubscribable with EquatableMixin { - GithubCommitsSubscribable(); - - factory GithubCommitsSubscribable.fromJson(Map json) => - _$GithubCommitsSubscribableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubCommitsSubscribableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsPinnableItem with EquatableMixin { - GithubCommitsPinnableItem(); - - factory GithubCommitsPinnableItem.fromJson(Map json) => - _$GithubCommitsPinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GithubCommitsPinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsStarrable with EquatableMixin { - GithubCommitsStarrable(); - - factory GithubCommitsStarrable.fromJson(Map json) => - _$GithubCommitsStarrableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubCommitsStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsRepositoryInfo with EquatableMixin { - GithubCommitsRepositoryInfo(); - - factory GithubCommitsRepositoryInfo.fromJson(Map json) => - _$GithubCommitsRepositoryInfoFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubCommitsRepositoryInfoToJson(this); -} - -enum GithubCommitsStatusState { - EXPECTED, - ERROR, - FAILURE, - PENDING, - SUCCESS, -} - -@JsonSerializable(explicitToJson: true) -class GithubCommitsArguments extends JsonSerializable with EquatableMixin { - GithubCommitsArguments( - {this.owner, this.name, this.ref, this.hasRef, this.after}); - - factory GithubCommitsArguments.fromJson(Map json) => - _$GithubCommitsArgumentsFromJson(json); - - final String owner; - - final String name; - - final String ref; - - final bool hasRef; - - final String after; - - @override - List get props => [owner, name, ref, hasRef, after]; - Map toJson() => _$GithubCommitsArgumentsToJson(this); -} - -class GithubCommitsQuery - extends GraphQLQuery { - GithubCommitsQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - FragmentDefinitionNode( - name: NameNode(value: 'T'), - typeCondition: TypeConditionNode( - on: NamedTypeNode(name: NameNode(value: 'Ref'), isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'target'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Commit'), isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'oid'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'url'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'messageHeadline'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'committedDate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'author'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'user'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])), - FieldNode( - name: NameNode(value: 'status'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'state'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'history'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '30')), - ArgumentNode( - name: NameNode(value: 'after'), - value: VariableNode( - name: NameNode(value: 'after'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'pageInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hasNextPage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'endCursor'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'oid'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'url'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'messageHeadline'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'committedDate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'author'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'user'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])), - FieldNode( - name: NameNode(value: 'status'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'state'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])) - ])) - ])), - OperationDefinitionNode( - type: OperationType.query, - name: null, - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'owner')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'name')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'ref')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'hasRef')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'after')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: false), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'repository'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'owner'), - value: VariableNode(name: NameNode(value: 'owner'))), - ArgumentNode( - name: NameNode(value: 'name'), - value: VariableNode(name: NameNode(value: 'name'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'defaultBranchRef'), - alias: null, - arguments: [], - directives: [ - DirectiveNode(name: NameNode(value: 'skip'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: - VariableNode(name: NameNode(value: 'hasRef'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'T'), directives: []) - ])), - FieldNode( - name: NameNode(value: 'ref'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'qualifiedName'), - value: VariableNode(name: NameNode(value: 'ref'))) - ], - directives: [ - DirectiveNode( - name: NameNode(value: 'include'), - arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'hasRef'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FragmentSpreadNode( - name: NameNode(value: 'T'), directives: []) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'github_commits'; - - @override - final GithubCommitsArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GithubCommits parse(Map json) => - GithubCommits.fromJson(json); -} diff --git a/lib/graphql/github_commits.g.dart b/lib/graphql/github_commits.g.dart deleted file mode 100644 index df13043..0000000 --- a/lib/graphql/github_commits.g.dart +++ /dev/null @@ -1,411 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'github_commits.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -GithubCommits _$GithubCommitsFromJson(Map json) { - return GithubCommits() - ..repository = json['repository'] == null - ? null - : GithubCommitsRepository.fromJson( - json['repository'] as Map); -} - -Map _$GithubCommitsToJson(GithubCommits instance) => - { - 'repository': instance.repository?.toJson(), - }; - -GithubCommitsRepository _$GithubCommitsRepositoryFromJson( - Map json) { - return GithubCommitsRepository() - ..defaultBranchRef = json['defaultBranchRef'] == null - ? null - : GithubCommitsRef.fromJson( - json['defaultBranchRef'] as Map) - ..ref = json['ref'] == null - ? null - : GithubCommitsRef.fromJson(json['ref'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsRepositoryToJson( - GithubCommitsRepository instance) => - { - 'defaultBranchRef': instance.defaultBranchRef?.toJson(), - 'ref': instance.ref?.toJson(), - '__typename': instance.resolveType, - }; - -GithubCommitsRef _$GithubCommitsRefFromJson(Map json) { - return GithubCommitsRef() - ..target = json['target'] == null - ? null - : GithubCommitsGitObject.fromJson( - json['target'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsRefToJson(GithubCommitsRef instance) => - { - 'target': instance.target?.toJson(), - '__typename': instance.resolveType, - }; - -GithubCommitsGitObject _$GithubCommitsGitObjectFromJson( - Map json) { - return GithubCommitsGitObject()..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsGitObjectToJson( - GithubCommitsGitObject instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsCommit _$GithubCommitsCommitFromJson(Map json) { - return GithubCommitsCommit() - ..oid = json['oid'] as String - ..url = json['url'] as String - ..messageHeadline = json['messageHeadline'] as String - ..committedDate = json['committedDate'] == null - ? null - : DateTime.parse(json['committedDate'] as String) - ..author = json['author'] == null - ? null - : GithubCommitsGitActor.fromJson(json['author'] as Map) - ..status = json['status'] == null - ? null - : GithubCommitsStatus.fromJson(json['status'] as Map) - ..history = json['history'] == null - ? null - : GithubCommitsCommitHistoryConnection.fromJson( - json['history'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsCommitToJson( - GithubCommitsCommit instance) => - { - 'oid': instance.oid, - 'url': instance.url, - 'messageHeadline': instance.messageHeadline, - 'committedDate': instance.committedDate?.toIso8601String(), - 'author': instance.author?.toJson(), - 'status': instance.status?.toJson(), - 'history': instance.history?.toJson(), - '__typename': instance.resolveType, - }; - -GithubCommitsGitActor _$GithubCommitsGitActorFromJson( - Map json) { - return GithubCommitsGitActor() - ..name = json['name'] as String - ..avatarUrl = json['avatarUrl'] as String - ..user = json['user'] == null - ? null - : GithubCommitsUser.fromJson(json['user'] as Map); -} - -Map _$GithubCommitsGitActorToJson( - GithubCommitsGitActor instance) => - { - 'name': instance.name, - 'avatarUrl': instance.avatarUrl, - 'user': instance.user?.toJson(), - }; - -GithubCommitsUser _$GithubCommitsUserFromJson(Map json) { - return GithubCommitsUser() - ..login = json['login'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsUserToJson(GithubCommitsUser instance) => - { - 'login': instance.login, - '__typename': instance.resolveType, - }; - -GithubCommitsAuditEntryActor _$GithubCommitsAuditEntryActorFromJson( - Map json) { - return GithubCommitsAuditEntryActor(); -} - -Map _$GithubCommitsAuditEntryActorToJson( - GithubCommitsAuditEntryActor instance) => - {}; - -GithubCommitsNode _$GithubCommitsNodeFromJson(Map json) { - return GithubCommitsNode()..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsNodeToJson(GithubCommitsNode instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsActor _$GithubCommitsActorFromJson(Map json) { - return GithubCommitsActor() - ..login = json['login'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsActorToJson(GithubCommitsActor instance) => - { - 'login': instance.login, - '__typename': instance.resolveType, - }; - -GithubCommitsRegistryPackageOwner _$GithubCommitsRegistryPackageOwnerFromJson( - Map json) { - return GithubCommitsRegistryPackageOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsRegistryPackageOwnerToJson( - GithubCommitsRegistryPackageOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsRegistryPackageSearch _$GithubCommitsRegistryPackageSearchFromJson( - Map json) { - return GithubCommitsRegistryPackageSearch() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsRegistryPackageSearchToJson( - GithubCommitsRegistryPackageSearch instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsProjectOwner _$GithubCommitsProjectOwnerFromJson( - Map json) { - return GithubCommitsProjectOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsProjectOwnerToJson( - GithubCommitsProjectOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsRepositoryOwner _$GithubCommitsRepositoryOwnerFromJson( - Map json) { - return GithubCommitsRepositoryOwner() - ..login = json['login'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsRepositoryOwnerToJson( - GithubCommitsRepositoryOwner instance) => - { - 'login': instance.login, - '__typename': instance.resolveType, - }; - -GithubCommitsUniformResourceLocatable - _$GithubCommitsUniformResourceLocatableFromJson(Map json) { - return GithubCommitsUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsUniformResourceLocatableToJson( - GithubCommitsUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsProfileOwner _$GithubCommitsProfileOwnerFromJson( - Map json) { - return GithubCommitsProfileOwner() - ..login = json['login'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsProfileOwnerToJson( - GithubCommitsProfileOwner instance) => - { - 'login': instance.login, - '__typename': instance.resolveType, - }; - -GithubCommitsSponsorable _$GithubCommitsSponsorableFromJson( - Map json) { - return GithubCommitsSponsorable()..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsSponsorableToJson( - GithubCommitsSponsorable instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsStatus _$GithubCommitsStatusFromJson(Map json) { - return GithubCommitsStatus() - ..state = - _$enumDecodeNullable(_$GithubCommitsStatusStateEnumMap, json['state']) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsStatusToJson( - GithubCommitsStatus instance) => - { - 'state': _$GithubCommitsStatusStateEnumMap[instance.state], - '__typename': instance.resolveType, - }; - -T _$enumDecode( - Map enumValues, - dynamic source, { - T unknownValue, -}) { - if (source == null) { - throw ArgumentError('A value must be provided. Supported values: ' - '${enumValues.values.join(', ')}'); - } - - final value = enumValues.entries - .singleWhere((e) => e.value == source, orElse: () => null) - ?.key; - - if (value == null && unknownValue == null) { - throw ArgumentError('`$source` is not one of the supported values: ' - '${enumValues.values.join(', ')}'); - } - return value ?? unknownValue; -} - -T _$enumDecodeNullable( - Map enumValues, - dynamic source, { - T unknownValue, -}) { - if (source == null) { - return null; - } - return _$enumDecode(enumValues, source, unknownValue: unknownValue); -} - -const _$GithubCommitsStatusStateEnumMap = { - GithubCommitsStatusState.EXPECTED: 'EXPECTED', - GithubCommitsStatusState.ERROR: 'ERROR', - GithubCommitsStatusState.FAILURE: 'FAILURE', - GithubCommitsStatusState.PENDING: 'PENDING', - GithubCommitsStatusState.SUCCESS: 'SUCCESS', -}; - -GithubCommitsCommitHistoryConnection - _$GithubCommitsCommitHistoryConnectionFromJson(Map json) { - return GithubCommitsCommitHistoryConnection() - ..pageInfo = json['pageInfo'] == null - ? null - : GithubCommitsPageInfo.fromJson( - json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubCommitsCommit.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubCommitsCommitHistoryConnectionToJson( - GithubCommitsCommitHistoryConnection instance) => - { - 'pageInfo': instance.pageInfo?.toJson(), - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubCommitsPageInfo _$GithubCommitsPageInfoFromJson( - Map json) { - return GithubCommitsPageInfo() - ..hasNextPage = json['hasNextPage'] as bool - ..endCursor = json['endCursor'] as String; -} - -Map _$GithubCommitsPageInfoToJson( - GithubCommitsPageInfo instance) => - { - 'hasNextPage': instance.hasNextPage, - 'endCursor': instance.endCursor, - }; - -GithubCommitsPullRequestTimelineItem - _$GithubCommitsPullRequestTimelineItemFromJson(Map json) { - return GithubCommitsPullRequestTimelineItem(); -} - -Map _$GithubCommitsPullRequestTimelineItemToJson( - GithubCommitsPullRequestTimelineItem instance) => - {}; - -GithubCommitsSubscribable _$GithubCommitsSubscribableFromJson( - Map json) { - return GithubCommitsSubscribable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsSubscribableToJson( - GithubCommitsSubscribable instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsPinnableItem _$GithubCommitsPinnableItemFromJson( - Map json) { - return GithubCommitsPinnableItem(); -} - -Map _$GithubCommitsPinnableItemToJson( - GithubCommitsPinnableItem instance) => - {}; - -GithubCommitsStarrable _$GithubCommitsStarrableFromJson( - Map json) { - return GithubCommitsStarrable()..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsStarrableToJson( - GithubCommitsStarrable instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsRepositoryInfo _$GithubCommitsRepositoryInfoFromJson( - Map json) { - return GithubCommitsRepositoryInfo() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubCommitsRepositoryInfoToJson( - GithubCommitsRepositoryInfo instance) => - { - '__typename': instance.resolveType, - }; - -GithubCommitsArguments _$GithubCommitsArgumentsFromJson( - Map json) { - return GithubCommitsArguments( - owner: json['owner'] as String, - name: json['name'] as String, - ref: json['ref'] as String, - hasRef: json['hasRef'] as bool, - after: json['after'] as String, - ); -} - -Map _$GithubCommitsArgumentsToJson( - GithubCommitsArguments instance) => - { - 'owner': instance.owner, - 'name': instance.name, - 'ref': instance.ref, - 'hasRef': instance.hasRef, - 'after': instance.after, - }; diff --git a/lib/graphql/github_object.dart b/lib/graphql/github_object.dart deleted file mode 100644 index 37f68f2..0000000 --- a/lib/graphql/github_object.dart +++ /dev/null @@ -1,412 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -import 'package:artemis/artemis.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:equatable/equatable.dart'; -import 'package:gql/ast.dart'; -part 'github_object.g.dart'; - -@JsonSerializable(explicitToJson: true) -class GithubObject with EquatableMixin { - GithubObject(); - - factory GithubObject.fromJson(Map json) => - _$GithubObjectFromJson(json); - - GithubObjectRepository repository; - - @override - List get props => [repository]; - Map toJson() => _$GithubObjectToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectRepository extends GithubObjectPinnableItem - with EquatableMixin - implements - GithubObjectNode, - GithubObjectProjectOwner, - GithubObjectRegistryPackageOwner, - GithubObjectRegistryPackageSearch, - GithubObjectSubscribable, - GithubObjectStarrable, - GithubObjectUniformResourceLocatable, - GithubObjectRepositoryInfo { - GithubObjectRepository(); - - factory GithubObjectRepository.fromJson(Map json) => - _$GithubObjectRepositoryFromJson(json); - - GithubObjectGitObject object; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [object, resolveType]; - Map toJson() => _$GithubObjectRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectGitObject with EquatableMixin { - GithubObjectGitObject(); - - factory GithubObjectGitObject.fromJson(Map json) { - switch (json['__typename'].toString()) { - case 'Tree': - return GithubObjectTree.fromJson(json); - case 'Blob': - return GithubObjectBlob.fromJson(json); - default: - } - return _$GithubObjectGitObjectFromJson(json); - } - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() { - switch (resolveType) { - case 'Tree': - return (this as GithubObjectTree).toJson(); - case 'Blob': - return (this as GithubObjectBlob).toJson(); - default: - } - return _$GithubObjectGitObjectToJson(this); - } -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectTree - with EquatableMixin - implements GithubObjectNode, GithubObjectGitObject { - GithubObjectTree(); - - factory GithubObjectTree.fromJson(Map json) => - _$GithubObjectTreeFromJson(json); - - List entries; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [entries, resolveType]; - Map toJson() => _$GithubObjectTreeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectTreeEntry with EquatableMixin { - GithubObjectTreeEntry(); - - factory GithubObjectTreeEntry.fromJson(Map json) => - _$GithubObjectTreeEntryFromJson(json); - - String type; - - String name; - - @override - List get props => [type, name]; - Map toJson() => _$GithubObjectTreeEntryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectNode with EquatableMixin { - GithubObjectNode(); - - factory GithubObjectNode.fromJson(Map json) => - _$GithubObjectNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubObjectNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectBlob - with EquatableMixin - implements GithubObjectNode, GithubObjectGitObject { - GithubObjectBlob(); - - factory GithubObjectBlob.fromJson(Map json) => - _$GithubObjectBlobFromJson(json); - - String text; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [text, resolveType]; - Map toJson() => _$GithubObjectBlobToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectPinnableItem with EquatableMixin { - GithubObjectPinnableItem(); - - factory GithubObjectPinnableItem.fromJson(Map json) => - _$GithubObjectPinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GithubObjectPinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectProjectOwner with EquatableMixin { - GithubObjectProjectOwner(); - - factory GithubObjectProjectOwner.fromJson(Map json) => - _$GithubObjectProjectOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubObjectProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectRegistryPackageOwner with EquatableMixin { - GithubObjectRegistryPackageOwner(); - - factory GithubObjectRegistryPackageOwner.fromJson( - Map json) => - _$GithubObjectRegistryPackageOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubObjectRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectRegistryPackageSearch with EquatableMixin { - GithubObjectRegistryPackageSearch(); - - factory GithubObjectRegistryPackageSearch.fromJson( - Map json) => - _$GithubObjectRegistryPackageSearchFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubObjectRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectSubscribable with EquatableMixin { - GithubObjectSubscribable(); - - factory GithubObjectSubscribable.fromJson(Map json) => - _$GithubObjectSubscribableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubObjectSubscribableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectStarrable with EquatableMixin { - GithubObjectStarrable(); - - factory GithubObjectStarrable.fromJson(Map json) => - _$GithubObjectStarrableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubObjectStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectUniformResourceLocatable with EquatableMixin { - GithubObjectUniformResourceLocatable(); - - factory GithubObjectUniformResourceLocatable.fromJson( - Map json) => - _$GithubObjectUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubObjectUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectRepositoryInfo with EquatableMixin { - GithubObjectRepositoryInfo(); - - factory GithubObjectRepositoryInfo.fromJson(Map json) => - _$GithubObjectRepositoryInfoFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubObjectRepositoryInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubObjectArguments extends JsonSerializable with EquatableMixin { - GithubObjectArguments({this.owner, this.name, this.expression}); - - factory GithubObjectArguments.fromJson(Map json) => - _$GithubObjectArgumentsFromJson(json); - - final String owner; - - final String name; - - final String expression; - - @override - List get props => [owner, name, expression]; - Map toJson() => _$GithubObjectArgumentsToJson(this); -} - -class GithubObjectQuery - extends GraphQLQuery { - GithubObjectQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.query, - name: null, - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'owner')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'name')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'expression')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'repository'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'owner'), - value: VariableNode(name: NameNode(value: 'owner'))), - ArgumentNode( - name: NameNode(value: 'name'), - value: VariableNode(name: NameNode(value: 'name'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'object'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'expression'), - value: - VariableNode(name: NameNode(value: 'expression'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Tree'), - isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'entries'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'type'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Blob'), - isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'text'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'github_object'; - - @override - final GithubObjectArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GithubObject parse(Map json) => GithubObject.fromJson(json); -} diff --git a/lib/graphql/github_object.g.dart b/lib/graphql/github_object.g.dart deleted file mode 100644 index e0fd993..0000000 --- a/lib/graphql/github_object.g.dart +++ /dev/null @@ -1,205 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'github_object.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -GithubObject _$GithubObjectFromJson(Map json) { - return GithubObject() - ..repository = json['repository'] == null - ? null - : GithubObjectRepository.fromJson( - json['repository'] as Map); -} - -Map _$GithubObjectToJson(GithubObject instance) => - { - 'repository': instance.repository?.toJson(), - }; - -GithubObjectRepository _$GithubObjectRepositoryFromJson( - Map json) { - return GithubObjectRepository() - ..object = json['object'] == null - ? null - : GithubObjectGitObject.fromJson(json['object'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectRepositoryToJson( - GithubObjectRepository instance) => - { - 'object': instance.object?.toJson(), - '__typename': instance.resolveType, - }; - -GithubObjectGitObject _$GithubObjectGitObjectFromJson( - Map json) { - return GithubObjectGitObject()..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectGitObjectToJson( - GithubObjectGitObject instance) => - { - '__typename': instance.resolveType, - }; - -GithubObjectTree _$GithubObjectTreeFromJson(Map json) { - return GithubObjectTree() - ..entries = (json['entries'] as List) - ?.map((e) => e == null - ? null - : GithubObjectTreeEntry.fromJson(e as Map)) - ?.toList() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectTreeToJson(GithubObjectTree instance) => - { - 'entries': instance.entries?.map((e) => e?.toJson())?.toList(), - '__typename': instance.resolveType, - }; - -GithubObjectTreeEntry _$GithubObjectTreeEntryFromJson( - Map json) { - return GithubObjectTreeEntry() - ..type = json['type'] as String - ..name = json['name'] as String; -} - -Map _$GithubObjectTreeEntryToJson( - GithubObjectTreeEntry instance) => - { - 'type': instance.type, - 'name': instance.name, - }; - -GithubObjectNode _$GithubObjectNodeFromJson(Map json) { - return GithubObjectNode()..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectNodeToJson(GithubObjectNode instance) => - { - '__typename': instance.resolveType, - }; - -GithubObjectBlob _$GithubObjectBlobFromJson(Map json) { - return GithubObjectBlob() - ..text = json['text'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectBlobToJson(GithubObjectBlob instance) => - { - 'text': instance.text, - '__typename': instance.resolveType, - }; - -GithubObjectPinnableItem _$GithubObjectPinnableItemFromJson( - Map json) { - return GithubObjectPinnableItem(); -} - -Map _$GithubObjectPinnableItemToJson( - GithubObjectPinnableItem instance) => - {}; - -GithubObjectProjectOwner _$GithubObjectProjectOwnerFromJson( - Map json) { - return GithubObjectProjectOwner()..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectProjectOwnerToJson( - GithubObjectProjectOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubObjectRegistryPackageOwner _$GithubObjectRegistryPackageOwnerFromJson( - Map json) { - return GithubObjectRegistryPackageOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectRegistryPackageOwnerToJson( - GithubObjectRegistryPackageOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubObjectRegistryPackageSearch _$GithubObjectRegistryPackageSearchFromJson( - Map json) { - return GithubObjectRegistryPackageSearch() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectRegistryPackageSearchToJson( - GithubObjectRegistryPackageSearch instance) => - { - '__typename': instance.resolveType, - }; - -GithubObjectSubscribable _$GithubObjectSubscribableFromJson( - Map json) { - return GithubObjectSubscribable()..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectSubscribableToJson( - GithubObjectSubscribable instance) => - { - '__typename': instance.resolveType, - }; - -GithubObjectStarrable _$GithubObjectStarrableFromJson( - Map json) { - return GithubObjectStarrable()..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectStarrableToJson( - GithubObjectStarrable instance) => - { - '__typename': instance.resolveType, - }; - -GithubObjectUniformResourceLocatable - _$GithubObjectUniformResourceLocatableFromJson(Map json) { - return GithubObjectUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectUniformResourceLocatableToJson( - GithubObjectUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GithubObjectRepositoryInfo _$GithubObjectRepositoryInfoFromJson( - Map json) { - return GithubObjectRepositoryInfo() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubObjectRepositoryInfoToJson( - GithubObjectRepositoryInfo instance) => - { - '__typename': instance.resolveType, - }; - -GithubObjectArguments _$GithubObjectArgumentsFromJson( - Map json) { - return GithubObjectArguments( - owner: json['owner'] as String, - name: json['name'] as String, - expression: json['expression'] as String, - ); -} - -Map _$GithubObjectArgumentsToJson( - GithubObjectArguments instance) => - { - 'owner': instance.owner, - 'name': instance.name, - 'expression': instance.expression, - }; diff --git a/lib/graphql/github_repositories.dart b/lib/graphql/github_repositories.dart deleted file mode 100644 index 936db7b..0000000 --- a/lib/graphql/github_repositories.dart +++ /dev/null @@ -1,1123 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -import 'package:artemis/artemis.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:equatable/equatable.dart'; -import 'package:gql/ast.dart'; -part 'github_repositories.g.dart'; - -@JsonSerializable(explicitToJson: true) -class GithubRepositories with EquatableMixin { - GithubRepositories(); - - factory GithubRepositories.fromJson(Map json) => - _$GithubRepositoriesFromJson(json); - - GithubRepositoriesRepositoryOwner repositoryOwner; - - @override - List get props => [repositoryOwner]; - Map toJson() => _$GithubRepositoriesToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesRepositoryOwner with EquatableMixin { - GithubRepositoriesRepositoryOwner(); - - factory GithubRepositoriesRepositoryOwner.fromJson( - Map json) { - switch (json['__typename'].toString()) { - case 'User': - return GithubRepositoriesUser.fromJson(json); - case 'Organization': - return GithubRepositoriesOrganization.fromJson(json); - default: - } - return _$GithubRepositoriesRepositoryOwnerFromJson(json); - } - - String login; - - String avatarUrl; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, avatarUrl, resolveType]; - Map toJson() { - switch (resolveType) { - case 'User': - return (this as GithubRepositoriesUser).toJson(); - case 'Organization': - return (this as GithubRepositoriesOrganization).toJson(); - default: - } - return _$GithubRepositoriesRepositoryOwnerToJson(this); - } -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesUser extends GithubRepositoriesAuditEntryActor - with EquatableMixin - implements - GithubRepositoriesNode, - GithubRepositoriesActor, - GithubRepositoriesRegistryPackageOwner, - GithubRepositoriesRegistryPackageSearch, - GithubRepositoriesProjectOwner, - GithubRepositoriesRepositoryOwner, - GithubRepositoriesUniformResourceLocatable, - GithubRepositoriesProfileOwner, - GithubRepositoriesSponsorable { - GithubRepositoriesUser(); - - factory GithubRepositoriesUser.fromJson(Map json) => - _$GithubRepositoriesUserFromJson(json); - - GithubRepositoriesRepositoryConnection repositories; - - GithubRepositoriesStarredRepositoryConnection starredRepositories; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - String login; - - @override - String avatarUrl; - - @override - List get props => - [repositories, starredRepositories, resolveType, login, avatarUrl]; - Map toJson() => _$GithubRepositoriesUserToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesRepositoryConnection with EquatableMixin { - GithubRepositoriesRepositoryConnection(); - - factory GithubRepositoriesRepositoryConnection.fromJson( - Map json) => - _$GithubRepositoriesRepositoryConnectionFromJson(json); - - int totalCount; - - GithubRepositoriesPageInfo pageInfo; - - List nodes; - - @override - List get props => [totalCount, pageInfo, nodes]; - Map toJson() => - _$GithubRepositoriesRepositoryConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesPageInfo with EquatableMixin { - GithubRepositoriesPageInfo(); - - factory GithubRepositoriesPageInfo.fromJson(Map json) => - _$GithubRepositoriesPageInfoFromJson(json); - - bool hasNextPage; - - String endCursor; - - @override - List get props => [hasNextPage, endCursor]; - Map toJson() => _$GithubRepositoriesPageInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesRepository extends GithubRepositoriesPinnableItem - with EquatableMixin - implements - GithubRepositoriesNode, - GithubRepositoriesProjectOwner, - GithubRepositoriesRegistryPackageOwner, - GithubRepositoriesRegistryPackageSearch, - GithubRepositoriesSubscribable, - GithubRepositoriesStarrable, - GithubRepositoriesUniformResourceLocatable, - GithubRepositoriesRepositoryInfo { - GithubRepositoriesRepository(); - - factory GithubRepositoriesRepository.fromJson(Map json) => - _$GithubRepositoriesRepositoryFromJson(json); - - @override - GithubRepositoriesRepositoryOwner owner; - - @override - String name; - - @override - String description; - - @override - bool isPrivate; - - @override - bool isFork; - - @override - GithubRepositoriesStargazerConnection stargazers; - - GithubRepositoriesRepositoryConnection forks; - - GithubRepositoriesLanguage primaryLanguage; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [ - owner, - name, - description, - isPrivate, - isFork, - stargazers, - forks, - primaryLanguage, - resolveType - ]; - Map toJson() => _$GithubRepositoriesRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesStargazerConnection with EquatableMixin { - GithubRepositoriesStargazerConnection(); - - factory GithubRepositoriesStargazerConnection.fromJson( - Map json) => - _$GithubRepositoriesStargazerConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubRepositoriesStargazerConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesLanguage - with EquatableMixin - implements GithubRepositoriesNode { - GithubRepositoriesLanguage(); - - factory GithubRepositoriesLanguage.fromJson(Map json) => - _$GithubRepositoriesLanguageFromJson(json); - - String color; - - String name; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [color, name, resolveType]; - Map toJson() => _$GithubRepositoriesLanguageToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesNode with EquatableMixin { - GithubRepositoriesNode(); - - factory GithubRepositoriesNode.fromJson(Map json) => - _$GithubRepositoriesNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubRepositoriesNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesPinnableItem with EquatableMixin { - GithubRepositoriesPinnableItem(); - - factory GithubRepositoriesPinnableItem.fromJson(Map json) => - _$GithubRepositoriesPinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GithubRepositoriesPinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesProjectOwner with EquatableMixin { - GithubRepositoriesProjectOwner(); - - factory GithubRepositoriesProjectOwner.fromJson(Map json) => - _$GithubRepositoriesProjectOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubRepositoriesProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesRegistryPackageOwner with EquatableMixin { - GithubRepositoriesRegistryPackageOwner(); - - factory GithubRepositoriesRegistryPackageOwner.fromJson( - Map json) => - _$GithubRepositoriesRegistryPackageOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubRepositoriesRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesRegistryPackageSearch with EquatableMixin { - GithubRepositoriesRegistryPackageSearch(); - - factory GithubRepositoriesRegistryPackageSearch.fromJson( - Map json) => - _$GithubRepositoriesRegistryPackageSearchFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubRepositoriesRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesSubscribable with EquatableMixin { - GithubRepositoriesSubscribable(); - - factory GithubRepositoriesSubscribable.fromJson(Map json) => - _$GithubRepositoriesSubscribableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubRepositoriesSubscribableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesStarrable with EquatableMixin { - GithubRepositoriesStarrable(); - - factory GithubRepositoriesStarrable.fromJson(Map json) => - _$GithubRepositoriesStarrableFromJson(json); - - GithubRepositoriesStargazerConnection stargazers; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [stargazers, resolveType]; - Map toJson() => _$GithubRepositoriesStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesUniformResourceLocatable with EquatableMixin { - GithubRepositoriesUniformResourceLocatable(); - - factory GithubRepositoriesUniformResourceLocatable.fromJson( - Map json) => - _$GithubRepositoriesUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubRepositoriesUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesRepositoryInfo with EquatableMixin { - GithubRepositoriesRepositoryInfo(); - - factory GithubRepositoriesRepositoryInfo.fromJson( - Map json) => - _$GithubRepositoriesRepositoryInfoFromJson(json); - - GithubRepositoriesRepositoryOwner owner; - - String name; - - String description; - - bool isPrivate; - - bool isFork; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => - [owner, name, description, isPrivate, isFork, resolveType]; - Map toJson() => - _$GithubRepositoriesRepositoryInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesStarredRepositoryConnection with EquatableMixin { - GithubRepositoriesStarredRepositoryConnection(); - - factory GithubRepositoriesStarredRepositoryConnection.fromJson( - Map json) => - _$GithubRepositoriesStarredRepositoryConnectionFromJson(json); - - GithubRepositoriesPageInfo pageInfo; - - List nodes; - - @override - List get props => [pageInfo, nodes]; - Map toJson() => - _$GithubRepositoriesStarredRepositoryConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesAuditEntryActor with EquatableMixin { - GithubRepositoriesAuditEntryActor(); - - factory GithubRepositoriesAuditEntryActor.fromJson( - Map json) => - _$GithubRepositoriesAuditEntryActorFromJson(json); - - @override - List get props => []; - Map toJson() => - _$GithubRepositoriesAuditEntryActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesActor with EquatableMixin { - GithubRepositoriesActor(); - - factory GithubRepositoriesActor.fromJson(Map json) => - _$GithubRepositoriesActorFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubRepositoriesActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesProfileOwner with EquatableMixin { - GithubRepositoriesProfileOwner(); - - factory GithubRepositoriesProfileOwner.fromJson(Map json) => - _$GithubRepositoriesProfileOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubRepositoriesProfileOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesSponsorable with EquatableMixin { - GithubRepositoriesSponsorable(); - - factory GithubRepositoriesSponsorable.fromJson(Map json) => - _$GithubRepositoriesSponsorableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubRepositoriesSponsorableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesOrganization extends GithubRepositoriesAuditEntryActor - with EquatableMixin - implements - GithubRepositoriesNode, - GithubRepositoriesActor, - GithubRepositoriesRegistryPackageOwner, - GithubRepositoriesRegistryPackageSearch, - GithubRepositoriesProjectOwner, - GithubRepositoriesRepositoryOwner, - GithubRepositoriesUniformResourceLocatable, - GithubRepositoriesMemberStatusable, - GithubRepositoriesProfileOwner, - GithubRepositoriesSponsorable { - GithubRepositoriesOrganization(); - - factory GithubRepositoriesOrganization.fromJson(Map json) => - _$GithubRepositoriesOrganizationFromJson(json); - - GithubRepositoriesPinnableItemConnection pinnableItems; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - String login; - - @override - String avatarUrl; - - @override - List get props => [pinnableItems, resolveType, login, avatarUrl]; - Map toJson() => _$GithubRepositoriesOrganizationToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesPinnableItemConnection with EquatableMixin { - GithubRepositoriesPinnableItemConnection(); - - factory GithubRepositoriesPinnableItemConnection.fromJson( - Map json) => - _$GithubRepositoriesPinnableItemConnectionFromJson(json); - - GithubRepositoriesPageInfo pageInfo; - - List nodes; - - @override - List get props => [pageInfo, nodes]; - Map toJson() => - _$GithubRepositoriesPinnableItemConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesMemberStatusable with EquatableMixin { - GithubRepositoriesMemberStatusable(); - - factory GithubRepositoriesMemberStatusable.fromJson( - Map json) => - _$GithubRepositoriesMemberStatusableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubRepositoriesMemberStatusableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoriesArguments extends JsonSerializable with EquatableMixin { - GithubRepositoriesArguments({this.owner, this.after, this.isStar}); - - factory GithubRepositoriesArguments.fromJson(Map json) => - _$GithubRepositoriesArgumentsFromJson(json); - - final String owner; - - final String after; - - final bool isStar; - - @override - List get props => [owner, after, isStar]; - Map toJson() => _$GithubRepositoriesArgumentsToJson(this); -} - -class GithubRepositoriesQuery - extends GraphQLQuery { - GithubRepositoriesQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.query, - name: null, - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'owner')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'after')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: false), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'isStar')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'repositoryOwner'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'login'), - value: VariableNode(name: NameNode(value: 'owner'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'User'), isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'repositories'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '30')), - ArgumentNode( - name: NameNode(value: 'after'), - value: VariableNode( - name: NameNode(value: 'after'))), - ArgumentNode( - name: NameNode(value: 'orderBy'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'field'), - value: EnumValueNode( - name: NameNode(value: 'UPDATED_AT'))), - ObjectFieldNode( - name: NameNode(value: 'direction'), - value: EnumValueNode( - name: NameNode(value: 'DESC'))) - ])) - ], - directives: [ - DirectiveNode( - name: NameNode(value: 'skip'), - arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'isStar'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'pageInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hasNextPage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'endCursor'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'owner'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'description'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isPrivate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isFork'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'stargazers'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'forks'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'primaryLanguage'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'starredRepositories'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '30')), - ArgumentNode( - name: NameNode(value: 'after'), - value: VariableNode( - name: NameNode(value: 'after'))), - ArgumentNode( - name: NameNode(value: 'orderBy'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'field'), - value: EnumValueNode( - name: NameNode(value: 'STARRED_AT'))), - ObjectFieldNode( - name: NameNode(value: 'direction'), - value: EnumValueNode( - name: NameNode(value: 'DESC'))) - ])) - ], - directives: [ - DirectiveNode( - name: NameNode(value: 'include'), - arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'isStar'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'pageInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hasNextPage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'endCursor'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'owner'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'description'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isPrivate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isFork'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'stargazers'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'forks'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'primaryLanguage'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Organization'), - isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'pinnableItems'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '30')), - ArgumentNode( - name: NameNode(value: 'after'), - value: VariableNode( - name: NameNode(value: 'after'))), - ArgumentNode( - name: NameNode(value: 'types'), - value: ListValueNode(values: [ - EnumValueNode( - name: NameNode(value: 'REPOSITORY')) - ])) - ], - directives: [ - DirectiveNode( - name: NameNode(value: 'skip'), - arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'isStar'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'pageInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hasNextPage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'endCursor'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: - NameNode(value: 'Repository'), - isNonNull: false)), - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'owner'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode( - value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: - NameNode(value: 'description'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isPrivate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isFork'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'stargazers'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'forks'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode( - value: 'primaryLanguage'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'github_repositories'; - - @override - final GithubRepositoriesArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GithubRepositories parse(Map json) => - GithubRepositories.fromJson(json); -} diff --git a/lib/graphql/github_repositories.g.dart b/lib/graphql/github_repositories.g.dart deleted file mode 100644 index 9b88434..0000000 --- a/lib/graphql/github_repositories.g.dart +++ /dev/null @@ -1,432 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'github_repositories.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -GithubRepositories _$GithubRepositoriesFromJson(Map json) { - return GithubRepositories() - ..repositoryOwner = json['repositoryOwner'] == null - ? null - : GithubRepositoriesRepositoryOwner.fromJson( - json['repositoryOwner'] as Map); -} - -Map _$GithubRepositoriesToJson(GithubRepositories instance) => - { - 'repositoryOwner': instance.repositoryOwner?.toJson(), - }; - -GithubRepositoriesRepositoryOwner _$GithubRepositoriesRepositoryOwnerFromJson( - Map json) { - return GithubRepositoriesRepositoryOwner() - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesRepositoryOwnerToJson( - GithubRepositoriesRepositoryOwner instance) => - { - 'login': instance.login, - 'avatarUrl': instance.avatarUrl, - '__typename': instance.resolveType, - }; - -GithubRepositoriesUser _$GithubRepositoriesUserFromJson( - Map json) { - return GithubRepositoriesUser() - ..repositories = json['repositories'] == null - ? null - : GithubRepositoriesRepositoryConnection.fromJson( - json['repositories'] as Map) - ..starredRepositories = json['starredRepositories'] == null - ? null - : GithubRepositoriesStarredRepositoryConnection.fromJson( - json['starredRepositories'] as Map) - ..resolveType = json['__typename'] as String - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String; -} - -Map _$GithubRepositoriesUserToJson( - GithubRepositoriesUser instance) => - { - 'repositories': instance.repositories?.toJson(), - 'starredRepositories': instance.starredRepositories?.toJson(), - '__typename': instance.resolveType, - 'login': instance.login, - 'avatarUrl': instance.avatarUrl, - }; - -GithubRepositoriesRepositoryConnection - _$GithubRepositoriesRepositoryConnectionFromJson( - Map json) { - return GithubRepositoriesRepositoryConnection() - ..totalCount = json['totalCount'] as int - ..pageInfo = json['pageInfo'] == null - ? null - : GithubRepositoriesPageInfo.fromJson( - json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubRepositoriesRepository.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubRepositoriesRepositoryConnectionToJson( - GithubRepositoriesRepositoryConnection instance) => - { - 'totalCount': instance.totalCount, - 'pageInfo': instance.pageInfo?.toJson(), - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubRepositoriesPageInfo _$GithubRepositoriesPageInfoFromJson( - Map json) { - return GithubRepositoriesPageInfo() - ..hasNextPage = json['hasNextPage'] as bool - ..endCursor = json['endCursor'] as String; -} - -Map _$GithubRepositoriesPageInfoToJson( - GithubRepositoriesPageInfo instance) => - { - 'hasNextPage': instance.hasNextPage, - 'endCursor': instance.endCursor, - }; - -GithubRepositoriesRepository _$GithubRepositoriesRepositoryFromJson( - Map json) { - return GithubRepositoriesRepository() - ..owner = json['owner'] == null - ? null - : GithubRepositoriesRepositoryOwner.fromJson( - json['owner'] as Map) - ..name = json['name'] as String - ..description = json['description'] as String - ..isPrivate = json['isPrivate'] as bool - ..isFork = json['isFork'] as bool - ..stargazers = json['stargazers'] == null - ? null - : GithubRepositoriesStargazerConnection.fromJson( - json['stargazers'] as Map) - ..forks = json['forks'] == null - ? null - : GithubRepositoriesRepositoryConnection.fromJson( - json['forks'] as Map) - ..primaryLanguage = json['primaryLanguage'] == null - ? null - : GithubRepositoriesLanguage.fromJson( - json['primaryLanguage'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesRepositoryToJson( - GithubRepositoriesRepository instance) => - { - 'owner': instance.owner?.toJson(), - 'name': instance.name, - 'description': instance.description, - 'isPrivate': instance.isPrivate, - 'isFork': instance.isFork, - 'stargazers': instance.stargazers?.toJson(), - 'forks': instance.forks?.toJson(), - 'primaryLanguage': instance.primaryLanguage?.toJson(), - '__typename': instance.resolveType, - }; - -GithubRepositoriesStargazerConnection - _$GithubRepositoriesStargazerConnectionFromJson(Map json) { - return GithubRepositoriesStargazerConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubRepositoriesStargazerConnectionToJson( - GithubRepositoriesStargazerConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubRepositoriesLanguage _$GithubRepositoriesLanguageFromJson( - Map json) { - return GithubRepositoriesLanguage() - ..color = json['color'] as String - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesLanguageToJson( - GithubRepositoriesLanguage instance) => - { - 'color': instance.color, - 'name': instance.name, - '__typename': instance.resolveType, - }; - -GithubRepositoriesNode _$GithubRepositoriesNodeFromJson( - Map json) { - return GithubRepositoriesNode()..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesNodeToJson( - GithubRepositoriesNode instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesPinnableItem _$GithubRepositoriesPinnableItemFromJson( - Map json) { - return GithubRepositoriesPinnableItem(); -} - -Map _$GithubRepositoriesPinnableItemToJson( - GithubRepositoriesPinnableItem instance) => - {}; - -GithubRepositoriesProjectOwner _$GithubRepositoriesProjectOwnerFromJson( - Map json) { - return GithubRepositoriesProjectOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesProjectOwnerToJson( - GithubRepositoriesProjectOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesRegistryPackageOwner - _$GithubRepositoriesRegistryPackageOwnerFromJson( - Map json) { - return GithubRepositoriesRegistryPackageOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesRegistryPackageOwnerToJson( - GithubRepositoriesRegistryPackageOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesRegistryPackageSearch - _$GithubRepositoriesRegistryPackageSearchFromJson( - Map json) { - return GithubRepositoriesRegistryPackageSearch() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesRegistryPackageSearchToJson( - GithubRepositoriesRegistryPackageSearch instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesSubscribable _$GithubRepositoriesSubscribableFromJson( - Map json) { - return GithubRepositoriesSubscribable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesSubscribableToJson( - GithubRepositoriesSubscribable instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesStarrable _$GithubRepositoriesStarrableFromJson( - Map json) { - return GithubRepositoriesStarrable() - ..stargazers = json['stargazers'] == null - ? null - : GithubRepositoriesStargazerConnection.fromJson( - json['stargazers'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesStarrableToJson( - GithubRepositoriesStarrable instance) => - { - 'stargazers': instance.stargazers?.toJson(), - '__typename': instance.resolveType, - }; - -GithubRepositoriesUniformResourceLocatable - _$GithubRepositoriesUniformResourceLocatableFromJson( - Map json) { - return GithubRepositoriesUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesUniformResourceLocatableToJson( - GithubRepositoriesUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesRepositoryInfo _$GithubRepositoriesRepositoryInfoFromJson( - Map json) { - return GithubRepositoriesRepositoryInfo() - ..owner = json['owner'] == null - ? null - : GithubRepositoriesRepositoryOwner.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 _$GithubRepositoriesRepositoryInfoToJson( - GithubRepositoriesRepositoryInfo instance) => - { - 'owner': instance.owner?.toJson(), - 'name': instance.name, - 'description': instance.description, - 'isPrivate': instance.isPrivate, - 'isFork': instance.isFork, - '__typename': instance.resolveType, - }; - -GithubRepositoriesStarredRepositoryConnection - _$GithubRepositoriesStarredRepositoryConnectionFromJson( - Map json) { - return GithubRepositoriesStarredRepositoryConnection() - ..pageInfo = json['pageInfo'] == null - ? null - : GithubRepositoriesPageInfo.fromJson( - json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubRepositoriesRepository.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubRepositoriesStarredRepositoryConnectionToJson( - GithubRepositoriesStarredRepositoryConnection instance) => - { - 'pageInfo': instance.pageInfo?.toJson(), - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubRepositoriesAuditEntryActor _$GithubRepositoriesAuditEntryActorFromJson( - Map json) { - return GithubRepositoriesAuditEntryActor(); -} - -Map _$GithubRepositoriesAuditEntryActorToJson( - GithubRepositoriesAuditEntryActor instance) => - {}; - -GithubRepositoriesActor _$GithubRepositoriesActorFromJson( - Map json) { - return GithubRepositoriesActor()..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesActorToJson( - GithubRepositoriesActor instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesProfileOwner _$GithubRepositoriesProfileOwnerFromJson( - Map json) { - return GithubRepositoriesProfileOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesProfileOwnerToJson( - GithubRepositoriesProfileOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesSponsorable _$GithubRepositoriesSponsorableFromJson( - Map json) { - return GithubRepositoriesSponsorable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesSponsorableToJson( - GithubRepositoriesSponsorable instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesOrganization _$GithubRepositoriesOrganizationFromJson( - Map json) { - return GithubRepositoriesOrganization() - ..pinnableItems = json['pinnableItems'] == null - ? null - : GithubRepositoriesPinnableItemConnection.fromJson( - json['pinnableItems'] as Map) - ..resolveType = json['__typename'] as String - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String; -} - -Map _$GithubRepositoriesOrganizationToJson( - GithubRepositoriesOrganization instance) => - { - 'pinnableItems': instance.pinnableItems?.toJson(), - '__typename': instance.resolveType, - 'login': instance.login, - 'avatarUrl': instance.avatarUrl, - }; - -GithubRepositoriesPinnableItemConnection - _$GithubRepositoriesPinnableItemConnectionFromJson( - Map json) { - return GithubRepositoriesPinnableItemConnection() - ..pageInfo = json['pageInfo'] == null - ? null - : GithubRepositoriesPageInfo.fromJson( - json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubRepositoriesPinnableItem.fromJson( - e as Map)) - ?.toList(); -} - -Map _$GithubRepositoriesPinnableItemConnectionToJson( - GithubRepositoriesPinnableItemConnection instance) => - { - 'pageInfo': instance.pageInfo?.toJson(), - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubRepositoriesMemberStatusable _$GithubRepositoriesMemberStatusableFromJson( - Map json) { - return GithubRepositoriesMemberStatusable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoriesMemberStatusableToJson( - GithubRepositoriesMemberStatusable instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoriesArguments _$GithubRepositoriesArgumentsFromJson( - Map json) { - return GithubRepositoriesArguments( - owner: json['owner'] as String, - after: json['after'] as String, - isStar: json['isStar'] as bool, - ); -} - -Map _$GithubRepositoriesArgumentsToJson( - GithubRepositoriesArguments instance) => - { - 'owner': instance.owner, - 'after': instance.after, - 'isStar': instance.isStar, - }; diff --git a/lib/graphql/github_repository.dart b/lib/graphql/github_repository.dart deleted file mode 100644 index 23c3837..0000000 --- a/lib/graphql/github_repository.dart +++ /dev/null @@ -1,1267 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -import 'package:artemis/artemis.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:equatable/equatable.dart'; -import 'package:gql/ast.dart'; -part 'github_repository.g.dart'; - -@JsonSerializable(explicitToJson: true) -class GithubRepository with EquatableMixin { - GithubRepository(); - - factory GithubRepository.fromJson(Map json) => - _$GithubRepositoryFromJson(json); - - GithubRepositoryRepository repository; - - @override - List get props => [repository]; - Map toJson() => _$GithubRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRepository extends GithubRepositoryPinnableItem - with EquatableMixin - implements - GithubRepositoryNode, - GithubRepositoryProjectOwner, - GithubRepositoryRegistryPackageOwner, - GithubRepositoryRegistryPackageSearch, - GithubRepositorySubscribable, - GithubRepositoryStarrable, - GithubRepositoryUniformResourceLocatable, - GithubRepositoryRepositoryInfo { - GithubRepositoryRepository(); - - factory GithubRepositoryRepository.fromJson(Map json) => - _$GithubRepositoryRepositoryFromJson(json); - - @override - GithubRepositoryRepositoryOwner owner; - - @override - String name; - - @override - String description; - - @override - String homepageUrl; - - @override - bool isPrivate; - - @override - bool isFork; - - @override - GithubRepositoryStargazerConnection stargazers; - - GithubRepositoryRepositoryConnection forks; - - GithubRepositoryLanguage primaryLanguage; - - @override - String id; - - int diskUsage; - - @override - bool hasIssuesEnabled; - - @override - String url; - - @override - bool viewerHasStarred; - - @override - String projectsUrl; - - GithubRepositoryUserConnection watchers; - - GithubRepositoryIssueConnection issues; - - GithubRepositoryPullRequestConnection pullRequests; - - @override - GithubRepositoryProjectConnection projects; - - GithubRepositoryReleaseConnection releases; - - GithubRepositoryLanguageConnection languages; - - GithubRepositoryRef defaultBranchRef; - - GithubRepositoryRef ref; - - GithubRepositoryRefConnection refs; - - @override - GithubRepositoryLicense licenseInfo; - - GithubRepositoryRepositoryTopicConnection repositoryTopics; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [ - owner, - name, - description, - homepageUrl, - isPrivate, - isFork, - stargazers, - forks, - primaryLanguage, - id, - diskUsage, - hasIssuesEnabled, - url, - viewerHasStarred, - projectsUrl, - watchers, - issues, - pullRequests, - projects, - releases, - languages, - defaultBranchRef, - ref, - refs, - licenseInfo, - repositoryTopics, - resolveType - ]; - Map toJson() => _$GithubRepositoryRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRepositoryOwner with EquatableMixin { - GithubRepositoryRepositoryOwner(); - - factory GithubRepositoryRepositoryOwner.fromJson(Map json) => - _$GithubRepositoryRepositoryOwnerFromJson(json); - - String login; - - String avatarUrl; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, avatarUrl, resolveType]; - Map toJson() => - _$GithubRepositoryRepositoryOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryStargazerConnection with EquatableMixin { - GithubRepositoryStargazerConnection(); - - factory GithubRepositoryStargazerConnection.fromJson( - Map json) => - _$GithubRepositoryStargazerConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubRepositoryStargazerConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRepositoryConnection with EquatableMixin { - GithubRepositoryRepositoryConnection(); - - factory GithubRepositoryRepositoryConnection.fromJson( - Map json) => - _$GithubRepositoryRepositoryConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubRepositoryRepositoryConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryLanguage - with EquatableMixin - implements GithubRepositoryNode { - GithubRepositoryLanguage(); - - factory GithubRepositoryLanguage.fromJson(Map json) => - _$GithubRepositoryLanguageFromJson(json); - - String color; - - String name; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [color, name, resolveType]; - Map toJson() => _$GithubRepositoryLanguageToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryNode with EquatableMixin { - GithubRepositoryNode(); - - factory GithubRepositoryNode.fromJson(Map json) => - _$GithubRepositoryNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubRepositoryNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryUserConnection with EquatableMixin { - GithubRepositoryUserConnection(); - - factory GithubRepositoryUserConnection.fromJson(Map json) => - _$GithubRepositoryUserConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => _$GithubRepositoryUserConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryIssueConnection with EquatableMixin { - GithubRepositoryIssueConnection(); - - factory GithubRepositoryIssueConnection.fromJson(Map json) => - _$GithubRepositoryIssueConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubRepositoryIssueConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryPullRequestConnection with EquatableMixin { - GithubRepositoryPullRequestConnection(); - - factory GithubRepositoryPullRequestConnection.fromJson( - Map json) => - _$GithubRepositoryPullRequestConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubRepositoryPullRequestConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryProjectConnection with EquatableMixin { - GithubRepositoryProjectConnection(); - - factory GithubRepositoryProjectConnection.fromJson( - Map json) => - _$GithubRepositoryProjectConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubRepositoryProjectConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryReleaseConnection with EquatableMixin { - GithubRepositoryReleaseConnection(); - - factory GithubRepositoryReleaseConnection.fromJson( - Map json) => - _$GithubRepositoryReleaseConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubRepositoryReleaseConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryLanguageConnection with EquatableMixin { - GithubRepositoryLanguageConnection(); - - factory GithubRepositoryLanguageConnection.fromJson( - Map json) => - _$GithubRepositoryLanguageConnectionFromJson(json); - - int totalSize; - - List edges; - - @override - List get props => [totalSize, edges]; - Map toJson() => - _$GithubRepositoryLanguageConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryLanguageEdge with EquatableMixin { - GithubRepositoryLanguageEdge(); - - factory GithubRepositoryLanguageEdge.fromJson(Map json) => - _$GithubRepositoryLanguageEdgeFromJson(json); - - int size; - - GithubRepositoryLanguage node; - - @override - List get props => [size, node]; - Map toJson() => _$GithubRepositoryLanguageEdgeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRef with EquatableMixin implements GithubRepositoryNode { - GithubRepositoryRef(); - - factory GithubRepositoryRef.fromJson(Map json) => - _$GithubRepositoryRefFromJson(json); - - String name; - - GithubRepositoryGitObject target; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [name, target, resolveType]; - Map toJson() => _$GithubRepositoryRefToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryGitObject with EquatableMixin { - GithubRepositoryGitObject(); - - factory GithubRepositoryGitObject.fromJson(Map json) { - switch (json['__typename'].toString()) { - case 'Commit': - return GithubRepositoryCommit.fromJson(json); - default: - } - return _$GithubRepositoryGitObjectFromJson(json); - } - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() { - switch (resolveType) { - case 'Commit': - return (this as GithubRepositoryCommit).toJson(); - default: - } - return _$GithubRepositoryGitObjectToJson(this); - } -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryCommit extends GithubRepositoryPullRequestTimelineItem - with EquatableMixin - implements - GithubRepositoryNode, - GithubRepositoryGitObject, - GithubRepositorySubscribable, - GithubRepositoryUniformResourceLocatable { - GithubRepositoryCommit(); - - factory GithubRepositoryCommit.fromJson(Map json) => - _$GithubRepositoryCommitFromJson(json); - - GithubRepositoryCommitHistoryConnection history; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [history, resolveType]; - Map toJson() => _$GithubRepositoryCommitToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryCommitHistoryConnection with EquatableMixin { - GithubRepositoryCommitHistoryConnection(); - - factory GithubRepositoryCommitHistoryConnection.fromJson( - Map json) => - _$GithubRepositoryCommitHistoryConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubRepositoryCommitHistoryConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryPullRequestTimelineItem with EquatableMixin { - GithubRepositoryPullRequestTimelineItem(); - - factory GithubRepositoryPullRequestTimelineItem.fromJson( - Map json) => - _$GithubRepositoryPullRequestTimelineItemFromJson(json); - - @override - List get props => []; - Map toJson() => - _$GithubRepositoryPullRequestTimelineItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositorySubscribable with EquatableMixin { - GithubRepositorySubscribable(); - - factory GithubRepositorySubscribable.fromJson(Map json) => - _$GithubRepositorySubscribableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubRepositorySubscribableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryUniformResourceLocatable with EquatableMixin { - GithubRepositoryUniformResourceLocatable(); - - factory GithubRepositoryUniformResourceLocatable.fromJson( - Map json) => - _$GithubRepositoryUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubRepositoryUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRefConnection with EquatableMixin { - GithubRepositoryRefConnection(); - - factory GithubRepositoryRefConnection.fromJson(Map json) => - _$GithubRepositoryRefConnectionFromJson(json); - - int totalCount; - - List nodes; - - @override - List get props => [totalCount, nodes]; - Map toJson() => _$GithubRepositoryRefConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryLicense - with EquatableMixin - implements GithubRepositoryNode { - GithubRepositoryLicense(); - - factory GithubRepositoryLicense.fromJson(Map json) => - _$GithubRepositoryLicenseFromJson(json); - - String name; - - String spdxId; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [name, spdxId, resolveType]; - Map toJson() => _$GithubRepositoryLicenseToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRepositoryTopicConnection with EquatableMixin { - GithubRepositoryRepositoryTopicConnection(); - - factory GithubRepositoryRepositoryTopicConnection.fromJson( - Map json) => - _$GithubRepositoryRepositoryTopicConnectionFromJson(json); - - List nodes; - - @override - List get props => [nodes]; - Map toJson() => - _$GithubRepositoryRepositoryTopicConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRepositoryTopic - with EquatableMixin - implements GithubRepositoryNode, GithubRepositoryUniformResourceLocatable { - GithubRepositoryRepositoryTopic(); - - factory GithubRepositoryRepositoryTopic.fromJson(Map json) => - _$GithubRepositoryRepositoryTopicFromJson(json); - - @override - String url; - - GithubRepositoryTopic topic; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [url, topic, resolveType]; - Map toJson() => - _$GithubRepositoryRepositoryTopicToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryTopic - with EquatableMixin - implements GithubRepositoryNode, GithubRepositoryStarrable { - GithubRepositoryTopic(); - - factory GithubRepositoryTopic.fromJson(Map json) => - _$GithubRepositoryTopicFromJson(json); - - String name; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [name, resolveType]; - Map toJson() => _$GithubRepositoryTopicToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryStarrable with EquatableMixin { - GithubRepositoryStarrable(); - - factory GithubRepositoryStarrable.fromJson(Map json) => - _$GithubRepositoryStarrableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubRepositoryStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryPinnableItem with EquatableMixin { - GithubRepositoryPinnableItem(); - - factory GithubRepositoryPinnableItem.fromJson(Map json) => - _$GithubRepositoryPinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GithubRepositoryPinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryProjectOwner with EquatableMixin { - GithubRepositoryProjectOwner(); - - factory GithubRepositoryProjectOwner.fromJson(Map json) => - _$GithubRepositoryProjectOwnerFromJson(json); - - String id; - - String projectsUrl; - - GithubRepositoryProjectConnection projects; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, projectsUrl, projects, resolveType]; - Map toJson() => _$GithubRepositoryProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRegistryPackageOwner with EquatableMixin { - GithubRepositoryRegistryPackageOwner(); - - factory GithubRepositoryRegistryPackageOwner.fromJson( - Map json) => - _$GithubRepositoryRegistryPackageOwnerFromJson(json); - - String id; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, resolveType]; - Map toJson() => - _$GithubRepositoryRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRegistryPackageSearch with EquatableMixin { - GithubRepositoryRegistryPackageSearch(); - - factory GithubRepositoryRegistryPackageSearch.fromJson( - Map json) => - _$GithubRepositoryRegistryPackageSearchFromJson(json); - - String id; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [id, resolveType]; - Map toJson() => - _$GithubRepositoryRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryRepositoryInfo with EquatableMixin { - GithubRepositoryRepositoryInfo(); - - factory GithubRepositoryRepositoryInfo.fromJson(Map json) => - _$GithubRepositoryRepositoryInfoFromJson(json); - - GithubRepositoryRepositoryOwner owner; - - String name; - - String description; - - String homepageUrl; - - bool isPrivate; - - bool isFork; - - bool hasIssuesEnabled; - - String url; - - GithubRepositoryLicense licenseInfo; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [ - owner, - name, - description, - homepageUrl, - isPrivate, - isFork, - hasIssuesEnabled, - url, - licenseInfo, - resolveType - ]; - Map toJson() => _$GithubRepositoryRepositoryInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubRepositoryArguments extends JsonSerializable with EquatableMixin { - GithubRepositoryArguments( - {this.owner, this.name, this.branchSpecified, this.branch}); - - factory GithubRepositoryArguments.fromJson(Map json) => - _$GithubRepositoryArgumentsFromJson(json); - - final String owner; - - final String name; - - final bool branchSpecified; - - final String branch; - - @override - List get props => [owner, name, branchSpecified, branch]; - Map toJson() => _$GithubRepositoryArgumentsToJson(this); -} - -class GithubRepositoryQuery - extends GraphQLQuery { - GithubRepositoryQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.query, - name: null, - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'owner')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'name')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'branchSpecified')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'branch')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'repository'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'owner'), - value: VariableNode(name: NameNode(value: 'owner'))), - ArgumentNode( - name: NameNode(value: 'name'), - value: VariableNode(name: NameNode(value: 'name'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'owner'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'description'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'homepageUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isPrivate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isFork'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'stargazers'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'forks'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'primaryLanguage'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'id'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'diskUsage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'hasIssuesEnabled'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'url'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'viewerHasStarred'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'projectsUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'watchers'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'issues'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'states'), - value: EnumValueNode(name: NameNode(value: 'OPEN'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'pullRequests'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'states'), - value: EnumValueNode(name: NameNode(value: 'OPEN'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'projects'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'releases'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'languages'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '10')), - ArgumentNode( - name: NameNode(value: 'orderBy'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'field'), - value: EnumValueNode( - name: NameNode(value: 'SIZE'))), - ObjectFieldNode( - name: NameNode(value: 'direction'), - value: EnumValueNode( - name: NameNode(value: 'DESC'))) - ])) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalSize'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'edges'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'size'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'node'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'defaultBranchRef'), - alias: null, - arguments: [], - directives: [ - DirectiveNode(name: NameNode(value: 'skip'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'branchSpecified'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'target'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Commit'), - isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'history'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'ref'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'qualifiedName'), - value: VariableNode(name: NameNode(value: 'branch'))) - ], - directives: [ - DirectiveNode( - name: NameNode(value: 'include'), - arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'branchSpecified'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'target'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Commit'), - isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'history'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'refs'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '100')), - ArgumentNode( - name: NameNode(value: 'refPrefix'), - value: StringValueNode( - value: 'refs/heads/', isBlock: false)) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])), - FieldNode( - name: NameNode(value: 'licenseInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'spdxId'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'repositoryTopics'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '10')) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'url'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'topic'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'github_repository'; - - @override - final GithubRepositoryArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GithubRepository parse(Map json) => - GithubRepository.fromJson(json); -} diff --git a/lib/graphql/github_repository.g.dart b/lib/graphql/github_repository.g.dart deleted file mode 100644 index 458d3b5..0000000 --- a/lib/graphql/github_repository.g.dart +++ /dev/null @@ -1,572 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'github_repository.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -GithubRepository _$GithubRepositoryFromJson(Map json) { - return GithubRepository() - ..repository = json['repository'] == null - ? null - : GithubRepositoryRepository.fromJson( - json['repository'] as Map); -} - -Map _$GithubRepositoryToJson(GithubRepository instance) => - { - 'repository': instance.repository?.toJson(), - }; - -GithubRepositoryRepository _$GithubRepositoryRepositoryFromJson( - Map json) { - return GithubRepositoryRepository() - ..owner = json['owner'] == null - ? null - : GithubRepositoryRepositoryOwner.fromJson( - json['owner'] as Map) - ..name = json['name'] as String - ..description = json['description'] as String - ..homepageUrl = json['homepageUrl'] as String - ..isPrivate = json['isPrivate'] as bool - ..isFork = json['isFork'] as bool - ..stargazers = json['stargazers'] == null - ? null - : GithubRepositoryStargazerConnection.fromJson( - json['stargazers'] as Map) - ..forks = json['forks'] == null - ? null - : GithubRepositoryRepositoryConnection.fromJson( - json['forks'] as Map) - ..primaryLanguage = json['primaryLanguage'] == null - ? null - : GithubRepositoryLanguage.fromJson( - json['primaryLanguage'] as Map) - ..id = json['id'] as String - ..diskUsage = json['diskUsage'] as int - ..hasIssuesEnabled = json['hasIssuesEnabled'] as bool - ..url = json['url'] as String - ..viewerHasStarred = json['viewerHasStarred'] as bool - ..projectsUrl = json['projectsUrl'] as String - ..watchers = json['watchers'] == null - ? null - : GithubRepositoryUserConnection.fromJson( - json['watchers'] as Map) - ..issues = json['issues'] == null - ? null - : GithubRepositoryIssueConnection.fromJson( - json['issues'] as Map) - ..pullRequests = json['pullRequests'] == null - ? null - : GithubRepositoryPullRequestConnection.fromJson( - json['pullRequests'] as Map) - ..projects = json['projects'] == null - ? null - : GithubRepositoryProjectConnection.fromJson(json['projects'] as Map) - ..releases = json['releases'] == null ? null : GithubRepositoryReleaseConnection.fromJson(json['releases'] as Map) - ..languages = json['languages'] == null ? null : GithubRepositoryLanguageConnection.fromJson(json['languages'] as Map) - ..defaultBranchRef = json['defaultBranchRef'] == null ? null : GithubRepositoryRef.fromJson(json['defaultBranchRef'] as Map) - ..ref = json['ref'] == null ? null : GithubRepositoryRef.fromJson(json['ref'] as Map) - ..refs = json['refs'] == null ? null : GithubRepositoryRefConnection.fromJson(json['refs'] as Map) - ..licenseInfo = json['licenseInfo'] == null ? null : GithubRepositoryLicense.fromJson(json['licenseInfo'] as Map) - ..repositoryTopics = json['repositoryTopics'] == null ? null : GithubRepositoryRepositoryTopicConnection.fromJson(json['repositoryTopics'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryRepositoryToJson( - GithubRepositoryRepository instance) => - { - 'owner': instance.owner?.toJson(), - 'name': instance.name, - 'description': instance.description, - 'homepageUrl': instance.homepageUrl, - 'isPrivate': instance.isPrivate, - 'isFork': instance.isFork, - 'stargazers': instance.stargazers?.toJson(), - 'forks': instance.forks?.toJson(), - 'primaryLanguage': instance.primaryLanguage?.toJson(), - 'id': instance.id, - 'diskUsage': instance.diskUsage, - 'hasIssuesEnabled': instance.hasIssuesEnabled, - 'url': instance.url, - 'viewerHasStarred': instance.viewerHasStarred, - 'projectsUrl': instance.projectsUrl, - 'watchers': instance.watchers?.toJson(), - 'issues': instance.issues?.toJson(), - 'pullRequests': instance.pullRequests?.toJson(), - 'projects': instance.projects?.toJson(), - 'releases': instance.releases?.toJson(), - 'languages': instance.languages?.toJson(), - 'defaultBranchRef': instance.defaultBranchRef?.toJson(), - 'ref': instance.ref?.toJson(), - 'refs': instance.refs?.toJson(), - 'licenseInfo': instance.licenseInfo?.toJson(), - 'repositoryTopics': instance.repositoryTopics?.toJson(), - '__typename': instance.resolveType, - }; - -GithubRepositoryRepositoryOwner _$GithubRepositoryRepositoryOwnerFromJson( - Map json) { - return GithubRepositoryRepositoryOwner() - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryRepositoryOwnerToJson( - GithubRepositoryRepositoryOwner instance) => - { - 'login': instance.login, - 'avatarUrl': instance.avatarUrl, - '__typename': instance.resolveType, - }; - -GithubRepositoryStargazerConnection - _$GithubRepositoryStargazerConnectionFromJson(Map json) { - return GithubRepositoryStargazerConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubRepositoryStargazerConnectionToJson( - GithubRepositoryStargazerConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubRepositoryRepositoryConnection - _$GithubRepositoryRepositoryConnectionFromJson(Map json) { - return GithubRepositoryRepositoryConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubRepositoryRepositoryConnectionToJson( - GithubRepositoryRepositoryConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubRepositoryLanguage _$GithubRepositoryLanguageFromJson( - Map json) { - return GithubRepositoryLanguage() - ..color = json['color'] as String - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryLanguageToJson( - GithubRepositoryLanguage instance) => - { - 'color': instance.color, - 'name': instance.name, - '__typename': instance.resolveType, - }; - -GithubRepositoryNode _$GithubRepositoryNodeFromJson(Map json) { - return GithubRepositoryNode()..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryNodeToJson( - GithubRepositoryNode instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoryUserConnection _$GithubRepositoryUserConnectionFromJson( - Map json) { - return GithubRepositoryUserConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubRepositoryUserConnectionToJson( - GithubRepositoryUserConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubRepositoryIssueConnection _$GithubRepositoryIssueConnectionFromJson( - Map json) { - return GithubRepositoryIssueConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubRepositoryIssueConnectionToJson( - GithubRepositoryIssueConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubRepositoryPullRequestConnection - _$GithubRepositoryPullRequestConnectionFromJson(Map json) { - return GithubRepositoryPullRequestConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubRepositoryPullRequestConnectionToJson( - GithubRepositoryPullRequestConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubRepositoryProjectConnection _$GithubRepositoryProjectConnectionFromJson( - Map json) { - return GithubRepositoryProjectConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubRepositoryProjectConnectionToJson( - GithubRepositoryProjectConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubRepositoryReleaseConnection _$GithubRepositoryReleaseConnectionFromJson( - Map json) { - return GithubRepositoryReleaseConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubRepositoryReleaseConnectionToJson( - GithubRepositoryReleaseConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubRepositoryLanguageConnection _$GithubRepositoryLanguageConnectionFromJson( - Map json) { - return GithubRepositoryLanguageConnection() - ..totalSize = json['totalSize'] as int - ..edges = (json['edges'] as List) - ?.map((e) => e == null - ? null - : GithubRepositoryLanguageEdge.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubRepositoryLanguageConnectionToJson( - GithubRepositoryLanguageConnection instance) => - { - 'totalSize': instance.totalSize, - 'edges': instance.edges?.map((e) => e?.toJson())?.toList(), - }; - -GithubRepositoryLanguageEdge _$GithubRepositoryLanguageEdgeFromJson( - Map json) { - return GithubRepositoryLanguageEdge() - ..size = json['size'] as int - ..node = json['node'] == null - ? null - : GithubRepositoryLanguage.fromJson( - json['node'] as Map); -} - -Map _$GithubRepositoryLanguageEdgeToJson( - GithubRepositoryLanguageEdge instance) => - { - 'size': instance.size, - 'node': instance.node?.toJson(), - }; - -GithubRepositoryRef _$GithubRepositoryRefFromJson(Map json) { - return GithubRepositoryRef() - ..name = json['name'] as String - ..target = json['target'] == null - ? null - : GithubRepositoryGitObject.fromJson( - json['target'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryRefToJson( - GithubRepositoryRef instance) => - { - 'name': instance.name, - 'target': instance.target?.toJson(), - '__typename': instance.resolveType, - }; - -GithubRepositoryGitObject _$GithubRepositoryGitObjectFromJson( - Map json) { - return GithubRepositoryGitObject() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryGitObjectToJson( - GithubRepositoryGitObject instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoryCommit _$GithubRepositoryCommitFromJson( - Map json) { - return GithubRepositoryCommit() - ..history = json['history'] == null - ? null - : GithubRepositoryCommitHistoryConnection.fromJson( - json['history'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryCommitToJson( - GithubRepositoryCommit instance) => - { - 'history': instance.history?.toJson(), - '__typename': instance.resolveType, - }; - -GithubRepositoryCommitHistoryConnection - _$GithubRepositoryCommitHistoryConnectionFromJson( - Map json) { - return GithubRepositoryCommitHistoryConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubRepositoryCommitHistoryConnectionToJson( - GithubRepositoryCommitHistoryConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubRepositoryPullRequestTimelineItem - _$GithubRepositoryPullRequestTimelineItemFromJson( - Map json) { - return GithubRepositoryPullRequestTimelineItem(); -} - -Map _$GithubRepositoryPullRequestTimelineItemToJson( - GithubRepositoryPullRequestTimelineItem instance) => - {}; - -GithubRepositorySubscribable _$GithubRepositorySubscribableFromJson( - Map json) { - return GithubRepositorySubscribable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositorySubscribableToJson( - GithubRepositorySubscribable instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoryUniformResourceLocatable - _$GithubRepositoryUniformResourceLocatableFromJson( - Map json) { - return GithubRepositoryUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryUniformResourceLocatableToJson( - GithubRepositoryUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoryRefConnection _$GithubRepositoryRefConnectionFromJson( - Map json) { - return GithubRepositoryRefConnection() - ..totalCount = json['totalCount'] as int - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubRepositoryRef.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubRepositoryRefConnectionToJson( - GithubRepositoryRefConnection instance) => - { - 'totalCount': instance.totalCount, - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubRepositoryLicense _$GithubRepositoryLicenseFromJson( - Map json) { - return GithubRepositoryLicense() - ..name = json['name'] as String - ..spdxId = json['spdxId'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryLicenseToJson( - GithubRepositoryLicense instance) => - { - 'name': instance.name, - 'spdxId': instance.spdxId, - '__typename': instance.resolveType, - }; - -GithubRepositoryRepositoryTopicConnection - _$GithubRepositoryRepositoryTopicConnectionFromJson( - Map json) { - return GithubRepositoryRepositoryTopicConnection() - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubRepositoryRepositoryTopic.fromJson( - e as Map)) - ?.toList(); -} - -Map _$GithubRepositoryRepositoryTopicConnectionToJson( - GithubRepositoryRepositoryTopicConnection instance) => - { - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubRepositoryRepositoryTopic _$GithubRepositoryRepositoryTopicFromJson( - Map json) { - return GithubRepositoryRepositoryTopic() - ..url = json['url'] as String - ..topic = json['topic'] == null - ? null - : GithubRepositoryTopic.fromJson(json['topic'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryRepositoryTopicToJson( - GithubRepositoryRepositoryTopic instance) => - { - 'url': instance.url, - 'topic': instance.topic?.toJson(), - '__typename': instance.resolveType, - }; - -GithubRepositoryTopic _$GithubRepositoryTopicFromJson( - Map json) { - return GithubRepositoryTopic() - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryTopicToJson( - GithubRepositoryTopic instance) => - { - 'name': instance.name, - '__typename': instance.resolveType, - }; - -GithubRepositoryStarrable _$GithubRepositoryStarrableFromJson( - Map json) { - return GithubRepositoryStarrable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryStarrableToJson( - GithubRepositoryStarrable instance) => - { - '__typename': instance.resolveType, - }; - -GithubRepositoryPinnableItem _$GithubRepositoryPinnableItemFromJson( - Map json) { - return GithubRepositoryPinnableItem(); -} - -Map _$GithubRepositoryPinnableItemToJson( - GithubRepositoryPinnableItem instance) => - {}; - -GithubRepositoryProjectOwner _$GithubRepositoryProjectOwnerFromJson( - Map json) { - return GithubRepositoryProjectOwner() - ..id = json['id'] as String - ..projectsUrl = json['projectsUrl'] as String - ..projects = json['projects'] == null - ? null - : GithubRepositoryProjectConnection.fromJson( - json['projects'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryProjectOwnerToJson( - GithubRepositoryProjectOwner instance) => - { - 'id': instance.id, - 'projectsUrl': instance.projectsUrl, - 'projects': instance.projects?.toJson(), - '__typename': instance.resolveType, - }; - -GithubRepositoryRegistryPackageOwner - _$GithubRepositoryRegistryPackageOwnerFromJson(Map json) { - return GithubRepositoryRegistryPackageOwner() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryRegistryPackageOwnerToJson( - GithubRepositoryRegistryPackageOwner instance) => - { - 'id': instance.id, - '__typename': instance.resolveType, - }; - -GithubRepositoryRegistryPackageSearch - _$GithubRepositoryRegistryPackageSearchFromJson(Map json) { - return GithubRepositoryRegistryPackageSearch() - ..id = json['id'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryRegistryPackageSearchToJson( - GithubRepositoryRegistryPackageSearch instance) => - { - 'id': instance.id, - '__typename': instance.resolveType, - }; - -GithubRepositoryRepositoryInfo _$GithubRepositoryRepositoryInfoFromJson( - Map json) { - return GithubRepositoryRepositoryInfo() - ..owner = json['owner'] == null - ? null - : GithubRepositoryRepositoryOwner.fromJson( - json['owner'] as Map) - ..name = json['name'] as String - ..description = json['description'] as String - ..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 - : GithubRepositoryLicense.fromJson( - json['licenseInfo'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubRepositoryRepositoryInfoToJson( - GithubRepositoryRepositoryInfo instance) => - { - 'owner': instance.owner?.toJson(), - 'name': instance.name, - 'description': instance.description, - 'homepageUrl': instance.homepageUrl, - 'isPrivate': instance.isPrivate, - 'isFork': instance.isFork, - 'hasIssuesEnabled': instance.hasIssuesEnabled, - 'url': instance.url, - 'licenseInfo': instance.licenseInfo?.toJson(), - '__typename': instance.resolveType, - }; - -GithubRepositoryArguments _$GithubRepositoryArgumentsFromJson( - Map json) { - return GithubRepositoryArguments( - owner: json['owner'] as String, - name: json['name'] as String, - branchSpecified: json['branchSpecified'] as bool, - branch: json['branch'] as String, - ); -} - -Map _$GithubRepositoryArgumentsToJson( - GithubRepositoryArguments instance) => - { - 'owner': instance.owner, - 'name': instance.name, - 'branchSpecified': instance.branchSpecified, - 'branch': instance.branch, - }; diff --git a/lib/graphql/github_user.dart b/lib/graphql/github_user.dart deleted file mode 100644 index 01793e8..0000000 --- a/lib/graphql/github_user.dart +++ /dev/null @@ -1,1695 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -import 'package:artemis/artemis.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:equatable/equatable.dart'; -import 'package:gql/ast.dart'; -part 'github_user.g.dart'; - -@JsonSerializable(explicitToJson: true) -class GithubUser with EquatableMixin { - GithubUser(); - - factory GithubUser.fromJson(Map json) => - _$GithubUserFromJson(json); - - GithubUserRepositoryOwner repositoryOwner; - - GithubUserUser viewer; - - @override - List get props => [repositoryOwner, viewer]; - Map toJson() => _$GithubUserToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserRepositoryOwner with EquatableMixin { - GithubUserRepositoryOwner(); - - factory GithubUserRepositoryOwner.fromJson(Map json) { - switch (json['__typename'].toString()) { - case 'User': - return GithubUserUser.fromJson(json); - case 'Organization': - return GithubUserOrganization.fromJson(json); - default: - } - return _$GithubUserRepositoryOwnerFromJson(json); - } - - String login; - - String avatarUrl; - - String url; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, avatarUrl, url, resolveType]; - Map toJson() { - switch (resolveType) { - case 'User': - return (this as GithubUserUser).toJson(); - case 'Organization': - return (this as GithubUserOrganization).toJson(); - default: - } - return _$GithubUserRepositoryOwnerToJson(this); - } -} - -@JsonSerializable(explicitToJson: true) -class GithubUserUser extends GithubUserAuditEntryActor - with EquatableMixin - implements - GithubUserNode, - GithubUserActor, - GithubUserRegistryPackageOwner, - GithubUserRegistryPackageSearch, - GithubUserProjectOwner, - GithubUserRepositoryOwner, - GithubUserUniformResourceLocatable, - GithubUserProfileOwner, - GithubUserSponsorable { - GithubUserUser(); - - factory GithubUserUser.fromJson(Map json) => - _$GithubUserUserFromJson(json); - - String name; - - String bio; - - String company; - - String location; - - String email; - - DateTime createdAt; - - String websiteUrl; - - GithubUserStarredRepositoryConnection starredRepositories; - - GithubUserFollowerConnection followers; - - GithubUserFollowingConnection following; - - GithubUserContributionsCollection contributionsCollection; - - GithubUserRepositoryConnection repositories; - - GithubUserPinnableItemConnection pinnedItems; - - bool viewerCanFollow; - - bool viewerIsFollowing; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - String login; - - @override - String avatarUrl; - - @override - String url; - - @override - List get props => [ - name, - bio, - company, - location, - email, - createdAt, - websiteUrl, - starredRepositories, - followers, - following, - contributionsCollection, - repositories, - pinnedItems, - viewerCanFollow, - viewerIsFollowing, - resolveType, - login, - avatarUrl, - url - ]; - Map toJson() => _$GithubUserUserToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserStarredRepositoryConnection with EquatableMixin { - GithubUserStarredRepositoryConnection(); - - factory GithubUserStarredRepositoryConnection.fromJson( - Map json) => - _$GithubUserStarredRepositoryConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubUserStarredRepositoryConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserFollowerConnection with EquatableMixin { - GithubUserFollowerConnection(); - - factory GithubUserFollowerConnection.fromJson(Map json) => - _$GithubUserFollowerConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => _$GithubUserFollowerConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserFollowingConnection with EquatableMixin { - GithubUserFollowingConnection(); - - factory GithubUserFollowingConnection.fromJson(Map json) => - _$GithubUserFollowingConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => _$GithubUserFollowingConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserContributionsCollection with EquatableMixin { - GithubUserContributionsCollection(); - - factory GithubUserContributionsCollection.fromJson( - Map json) => - _$GithubUserContributionsCollectionFromJson(json); - - GithubUserContributionCalendar contributionCalendar; - - @override - List get props => [contributionCalendar]; - Map toJson() => - _$GithubUserContributionsCollectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserContributionCalendar with EquatableMixin { - GithubUserContributionCalendar(); - - factory GithubUserContributionCalendar.fromJson(Map json) => - _$GithubUserContributionCalendarFromJson(json); - - List weeks; - - @override - List get props => [weeks]; - Map toJson() => _$GithubUserContributionCalendarToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserContributionCalendarWeek with EquatableMixin { - GithubUserContributionCalendarWeek(); - - factory GithubUserContributionCalendarWeek.fromJson( - Map json) => - _$GithubUserContributionCalendarWeekFromJson(json); - - List contributionDays; - - @override - List get props => [contributionDays]; - Map toJson() => - _$GithubUserContributionCalendarWeekToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserContributionCalendarDay with EquatableMixin { - GithubUserContributionCalendarDay(); - - factory GithubUserContributionCalendarDay.fromJson( - Map json) => - _$GithubUserContributionCalendarDayFromJson(json); - - String color; - - @override - List get props => [color]; - Map toJson() => - _$GithubUserContributionCalendarDayToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserRepositoryConnection with EquatableMixin { - GithubUserRepositoryConnection(); - - factory GithubUserRepositoryConnection.fromJson(Map json) => - _$GithubUserRepositoryConnectionFromJson(json); - - int totalCount; - - List nodes; - - @override - List get props => [totalCount, nodes]; - Map toJson() => _$GithubUserRepositoryConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserRepository extends GithubUserPinnableItem - with EquatableMixin - implements - GithubUserNode, - GithubUserProjectOwner, - GithubUserRegistryPackageOwner, - GithubUserRegistryPackageSearch, - GithubUserSubscribable, - GithubUserStarrable, - GithubUserUniformResourceLocatable, - GithubUserRepositoryInfo { - GithubUserRepository(); - - factory GithubUserRepository.fromJson(Map json) => - _$GithubUserRepositoryFromJson(json); - - @override - GithubUserRepositoryOwner owner; - - @override - String name; - - @override - String description; - - @override - bool isPrivate; - - @override - bool isFork; - - @override - GithubUserStargazerConnection stargazers; - - GithubUserRepositoryConnection forks; - - GithubUserLanguage primaryLanguage; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [ - owner, - name, - description, - isPrivate, - isFork, - stargazers, - forks, - primaryLanguage, - resolveType - ]; - Map toJson() => _$GithubUserRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserStargazerConnection with EquatableMixin { - GithubUserStargazerConnection(); - - factory GithubUserStargazerConnection.fromJson(Map json) => - _$GithubUserStargazerConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => _$GithubUserStargazerConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserLanguage with EquatableMixin implements GithubUserNode { - GithubUserLanguage(); - - factory GithubUserLanguage.fromJson(Map json) => - _$GithubUserLanguageFromJson(json); - - String color; - - String name; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [color, name, resolveType]; - Map toJson() => _$GithubUserLanguageToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserNode with EquatableMixin { - GithubUserNode(); - - factory GithubUserNode.fromJson(Map json) => - _$GithubUserNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUserNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserPinnableItem with EquatableMixin { - GithubUserPinnableItem(); - - factory GithubUserPinnableItem.fromJson(Map json) => - _$GithubUserPinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GithubUserPinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserProjectOwner with EquatableMixin { - GithubUserProjectOwner(); - - factory GithubUserProjectOwner.fromJson(Map json) => - _$GithubUserProjectOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUserProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserRegistryPackageOwner with EquatableMixin { - GithubUserRegistryPackageOwner(); - - factory GithubUserRegistryPackageOwner.fromJson(Map json) => - _$GithubUserRegistryPackageOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUserRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserRegistryPackageSearch with EquatableMixin { - GithubUserRegistryPackageSearch(); - - factory GithubUserRegistryPackageSearch.fromJson(Map json) => - _$GithubUserRegistryPackageSearchFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubUserRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserSubscribable with EquatableMixin { - GithubUserSubscribable(); - - factory GithubUserSubscribable.fromJson(Map json) => - _$GithubUserSubscribableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUserSubscribableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserStarrable with EquatableMixin { - GithubUserStarrable(); - - factory GithubUserStarrable.fromJson(Map json) => - _$GithubUserStarrableFromJson(json); - - GithubUserStargazerConnection stargazers; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [stargazers, resolveType]; - Map toJson() => _$GithubUserStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserUniformResourceLocatable with EquatableMixin { - GithubUserUniformResourceLocatable(); - - factory GithubUserUniformResourceLocatable.fromJson( - Map json) => - _$GithubUserUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubUserUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserRepositoryInfo with EquatableMixin { - GithubUserRepositoryInfo(); - - factory GithubUserRepositoryInfo.fromJson(Map json) => - _$GithubUserRepositoryInfoFromJson(json); - - GithubUserRepositoryOwner owner; - - String name; - - String description; - - bool isPrivate; - - bool isFork; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => - [owner, name, description, isPrivate, isFork, resolveType]; - Map toJson() => _$GithubUserRepositoryInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserPinnableItemConnection with EquatableMixin { - GithubUserPinnableItemConnection(); - - factory GithubUserPinnableItemConnection.fromJson( - Map json) => - _$GithubUserPinnableItemConnectionFromJson(json); - - int totalCount; - - List nodes; - - @override - List get props => [totalCount, nodes]; - Map toJson() => - _$GithubUserPinnableItemConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserAuditEntryActor with EquatableMixin { - GithubUserAuditEntryActor(); - - factory GithubUserAuditEntryActor.fromJson(Map json) => - _$GithubUserAuditEntryActorFromJson(json); - - @override - List get props => []; - Map toJson() => _$GithubUserAuditEntryActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserActor with EquatableMixin { - GithubUserActor(); - - factory GithubUserActor.fromJson(Map json) => - _$GithubUserActorFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUserActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserProfileOwner with EquatableMixin { - GithubUserProfileOwner(); - - factory GithubUserProfileOwner.fromJson(Map json) => - _$GithubUserProfileOwnerFromJson(json); - - String name; - - String location; - - String email; - - String websiteUrl; - - GithubUserPinnableItemConnection pinnedItems; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => - [name, location, email, websiteUrl, pinnedItems, resolveType]; - Map toJson() => _$GithubUserProfileOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserSponsorable with EquatableMixin { - GithubUserSponsorable(); - - factory GithubUserSponsorable.fromJson(Map json) => - _$GithubUserSponsorableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUserSponsorableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserOrganization extends GithubUserAuditEntryActor - with EquatableMixin - implements - GithubUserNode, - GithubUserActor, - GithubUserRegistryPackageOwner, - GithubUserRegistryPackageSearch, - GithubUserProjectOwner, - GithubUserRepositoryOwner, - GithubUserUniformResourceLocatable, - GithubUserMemberStatusable, - GithubUserProfileOwner, - GithubUserSponsorable { - GithubUserOrganization(); - - factory GithubUserOrganization.fromJson(Map json) => - _$GithubUserOrganizationFromJson(json); - - String name; - - String description; - - String location; - - String email; - - String websiteUrl; - - DateTime createdAt; - - GithubUserPinnableItemConnection pinnedItems; - - GithubUserPinnableItemConnection pinnableItems; - - GithubUserOrganizationMemberConnection membersWithRole; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - String login; - - @override - String avatarUrl; - - @override - String url; - - @override - List get props => [ - name, - description, - location, - email, - websiteUrl, - createdAt, - pinnedItems, - pinnableItems, - membersWithRole, - resolveType, - login, - avatarUrl, - url - ]; - Map toJson() => _$GithubUserOrganizationToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserOrganizationMemberConnection with EquatableMixin { - GithubUserOrganizationMemberConnection(); - - factory GithubUserOrganizationMemberConnection.fromJson( - Map json) => - _$GithubUserOrganizationMemberConnectionFromJson(json); - - int totalCount; - - @override - List get props => [totalCount]; - Map toJson() => - _$GithubUserOrganizationMemberConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserMemberStatusable with EquatableMixin { - GithubUserMemberStatusable(); - - factory GithubUserMemberStatusable.fromJson(Map json) => - _$GithubUserMemberStatusableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUserMemberStatusableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUserArguments extends JsonSerializable with EquatableMixin { - GithubUserArguments({this.login, this.isViewer}); - - factory GithubUserArguments.fromJson(Map json) => - _$GithubUserArgumentsFromJson(json); - - final String login; - - final bool isViewer; - - @override - List get props => [login, isViewer]; - Map toJson() => _$GithubUserArgumentsToJson(this); -} - -class GithubUserQuery extends GraphQLQuery { - GithubUserQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.query, - name: null, - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'login')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'isViewer')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'repositoryOwner'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'login'), - value: VariableNode(name: NameNode(value: 'login'))) - ], - directives: [ - DirectiveNode(name: NameNode(value: 'skip'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode(name: NameNode(value: 'isViewer'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'url'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'User'), isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'bio'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'company'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'email'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'websiteUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'starredRepositories'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'followers'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'following'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'contributionsCollection'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'contributionCalendar'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'weeks'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'contributionDays'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'repositories'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '6')), - ArgumentNode( - name: NameNode(value: 'ownerAffiliations'), - value: EnumValueNode( - name: NameNode(value: 'OWNER'))), - ArgumentNode( - name: NameNode(value: 'orderBy'), - value: ObjectValueNode(fields: [ - ObjectFieldNode( - name: NameNode(value: 'field'), - value: EnumValueNode( - name: NameNode(value: 'STARGAZERS'))), - ObjectFieldNode( - name: NameNode(value: 'direction'), - value: EnumValueNode( - name: NameNode(value: 'DESC'))) - ])) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'owner'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'description'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isPrivate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isFork'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'stargazers'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'forks'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'primaryLanguage'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'pinnedItems'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '6')) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: - NameNode(value: 'Repository'), - isNonNull: false)), - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'owner'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode( - value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: - NameNode(value: 'description'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isPrivate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isFork'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'stargazers'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'forks'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode( - value: 'primaryLanguage'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'viewerCanFollow'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'viewerIsFollowing'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: NameNode(value: 'Organization'), - isNonNull: false)), - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'description'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'email'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'websiteUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'pinnedItems'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '6')) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: - NameNode(value: 'Repository'), - isNonNull: false)), - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'owner'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode( - value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: - NameNode(value: 'description'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isPrivate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isFork'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'stargazers'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'forks'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode( - value: 'primaryLanguage'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'pinnableItems'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '6')), - ArgumentNode( - name: NameNode(value: 'types'), - value: ListValueNode(values: [ - EnumValueNode( - name: NameNode(value: 'REPOSITORY')) - ])) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: '__typename'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - InlineFragmentNode( - typeCondition: TypeConditionNode( - on: NamedTypeNode( - name: - NameNode(value: 'Repository'), - isNonNull: false)), - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'owner'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode( - value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: - NameNode(value: 'description'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isPrivate'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'isFork'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'stargazers'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'forks'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode( - value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode( - value: 'primaryLanguage'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: - NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'membersWithRole'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'viewer'), - alias: null, - arguments: [], - directives: [ - DirectiveNode(name: NameNode(value: 'include'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode(name: NameNode(value: 'isViewer'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'url'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'bio'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'company'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'email'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'websiteUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'starredRepositories'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'followers'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'following'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'repositories'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'totalCount'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'contributionsCollection'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'contributionCalendar'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'weeks'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'contributionDays'), - alias: null, - arguments: [], - directives: [], - selectionSet: - SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'color'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'github_user'; - - @override - final GithubUserArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GithubUser parse(Map json) => GithubUser.fromJson(json); -} diff --git a/lib/graphql/github_user.g.dart b/lib/graphql/github_user.g.dart deleted file mode 100644 index 53aeebf..0000000 --- a/lib/graphql/github_user.g.dart +++ /dev/null @@ -1,562 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'github_user.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -GithubUser _$GithubUserFromJson(Map json) { - return GithubUser() - ..repositoryOwner = json['repositoryOwner'] == null - ? null - : GithubUserRepositoryOwner.fromJson( - json['repositoryOwner'] as Map) - ..viewer = json['viewer'] == null - ? null - : GithubUserUser.fromJson(json['viewer'] as Map); -} - -Map _$GithubUserToJson(GithubUser instance) => - { - 'repositoryOwner': instance.repositoryOwner?.toJson(), - 'viewer': instance.viewer?.toJson(), - }; - -GithubUserRepositoryOwner _$GithubUserRepositoryOwnerFromJson( - Map json) { - return GithubUserRepositoryOwner() - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..url = json['url'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserRepositoryOwnerToJson( - GithubUserRepositoryOwner instance) => - { - 'login': instance.login, - 'avatarUrl': instance.avatarUrl, - 'url': instance.url, - '__typename': instance.resolveType, - }; - -GithubUserUser _$GithubUserUserFromJson(Map json) { - return GithubUserUser() - ..name = json['name'] as String - ..bio = json['bio'] as String - ..company = json['company'] as String - ..location = json['location'] as String - ..email = json['email'] as String - ..createdAt = json['createdAt'] == null - ? null - : DateTime.parse(json['createdAt'] as String) - ..websiteUrl = json['websiteUrl'] as String - ..starredRepositories = json['starredRepositories'] == null - ? null - : GithubUserStarredRepositoryConnection.fromJson( - json['starredRepositories'] as Map) - ..followers = json['followers'] == null - ? null - : GithubUserFollowerConnection.fromJson( - json['followers'] as Map) - ..following = json['following'] == null - ? null - : GithubUserFollowingConnection.fromJson( - json['following'] as Map) - ..contributionsCollection = json['contributionsCollection'] == null - ? null - : GithubUserContributionsCollection.fromJson( - json['contributionsCollection'] as Map) - ..repositories = json['repositories'] == null - ? null - : GithubUserRepositoryConnection.fromJson( - json['repositories'] as Map) - ..pinnedItems = json['pinnedItems'] == null - ? null - : GithubUserPinnableItemConnection.fromJson( - json['pinnedItems'] as Map) - ..viewerCanFollow = json['viewerCanFollow'] as bool - ..viewerIsFollowing = json['viewerIsFollowing'] as bool - ..resolveType = json['__typename'] as String - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..url = json['url'] as String; -} - -Map _$GithubUserUserToJson(GithubUserUser instance) => - { - 'name': instance.name, - 'bio': instance.bio, - 'company': instance.company, - 'location': instance.location, - 'email': instance.email, - 'createdAt': instance.createdAt?.toIso8601String(), - 'websiteUrl': instance.websiteUrl, - 'starredRepositories': instance.starredRepositories?.toJson(), - 'followers': instance.followers?.toJson(), - 'following': instance.following?.toJson(), - 'contributionsCollection': instance.contributionsCollection?.toJson(), - 'repositories': instance.repositories?.toJson(), - 'pinnedItems': instance.pinnedItems?.toJson(), - 'viewerCanFollow': instance.viewerCanFollow, - 'viewerIsFollowing': instance.viewerIsFollowing, - '__typename': instance.resolveType, - 'login': instance.login, - 'avatarUrl': instance.avatarUrl, - 'url': instance.url, - }; - -GithubUserStarredRepositoryConnection - _$GithubUserStarredRepositoryConnectionFromJson(Map json) { - return GithubUserStarredRepositoryConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubUserStarredRepositoryConnectionToJson( - GithubUserStarredRepositoryConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubUserFollowerConnection _$GithubUserFollowerConnectionFromJson( - Map json) { - return GithubUserFollowerConnection()..totalCount = json['totalCount'] as int; -} - -Map _$GithubUserFollowerConnectionToJson( - GithubUserFollowerConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubUserFollowingConnection _$GithubUserFollowingConnectionFromJson( - Map json) { - return GithubUserFollowingConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubUserFollowingConnectionToJson( - GithubUserFollowingConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubUserContributionsCollection _$GithubUserContributionsCollectionFromJson( - Map json) { - return GithubUserContributionsCollection() - ..contributionCalendar = json['contributionCalendar'] == null - ? null - : GithubUserContributionCalendar.fromJson( - json['contributionCalendar'] as Map); -} - -Map _$GithubUserContributionsCollectionToJson( - GithubUserContributionsCollection instance) => - { - 'contributionCalendar': instance.contributionCalendar?.toJson(), - }; - -GithubUserContributionCalendar _$GithubUserContributionCalendarFromJson( - Map json) { - return GithubUserContributionCalendar() - ..weeks = (json['weeks'] as List) - ?.map((e) => e == null - ? null - : GithubUserContributionCalendarWeek.fromJson( - e as Map)) - ?.toList(); -} - -Map _$GithubUserContributionCalendarToJson( - GithubUserContributionCalendar instance) => - { - 'weeks': instance.weeks?.map((e) => e?.toJson())?.toList(), - }; - -GithubUserContributionCalendarWeek _$GithubUserContributionCalendarWeekFromJson( - Map json) { - return GithubUserContributionCalendarWeek() - ..contributionDays = (json['contributionDays'] as List) - ?.map((e) => e == null - ? null - : GithubUserContributionCalendarDay.fromJson( - e as Map)) - ?.toList(); -} - -Map _$GithubUserContributionCalendarWeekToJson( - GithubUserContributionCalendarWeek instance) => - { - 'contributionDays': - instance.contributionDays?.map((e) => e?.toJson())?.toList(), - }; - -GithubUserContributionCalendarDay _$GithubUserContributionCalendarDayFromJson( - Map json) { - return GithubUserContributionCalendarDay()..color = json['color'] as String; -} - -Map _$GithubUserContributionCalendarDayToJson( - GithubUserContributionCalendarDay instance) => - { - 'color': instance.color, - }; - -GithubUserRepositoryConnection _$GithubUserRepositoryConnectionFromJson( - Map json) { - return GithubUserRepositoryConnection() - ..totalCount = json['totalCount'] as int - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubUserRepository.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubUserRepositoryConnectionToJson( - GithubUserRepositoryConnection instance) => - { - 'totalCount': instance.totalCount, - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubUserRepository _$GithubUserRepositoryFromJson(Map json) { - return GithubUserRepository() - ..owner = json['owner'] == null - ? null - : GithubUserRepositoryOwner.fromJson( - json['owner'] as Map) - ..name = json['name'] as String - ..description = json['description'] as String - ..isPrivate = json['isPrivate'] as bool - ..isFork = json['isFork'] as bool - ..stargazers = json['stargazers'] == null - ? null - : GithubUserStargazerConnection.fromJson( - json['stargazers'] as Map) - ..forks = json['forks'] == null - ? null - : GithubUserRepositoryConnection.fromJson( - json['forks'] as Map) - ..primaryLanguage = json['primaryLanguage'] == null - ? null - : GithubUserLanguage.fromJson( - json['primaryLanguage'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserRepositoryToJson( - GithubUserRepository instance) => - { - 'owner': instance.owner?.toJson(), - 'name': instance.name, - 'description': instance.description, - 'isPrivate': instance.isPrivate, - 'isFork': instance.isFork, - 'stargazers': instance.stargazers?.toJson(), - 'forks': instance.forks?.toJson(), - 'primaryLanguage': instance.primaryLanguage?.toJson(), - '__typename': instance.resolveType, - }; - -GithubUserStargazerConnection _$GithubUserStargazerConnectionFromJson( - Map json) { - return GithubUserStargazerConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubUserStargazerConnectionToJson( - GithubUserStargazerConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubUserLanguage _$GithubUserLanguageFromJson(Map json) { - return GithubUserLanguage() - ..color = json['color'] as String - ..name = json['name'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserLanguageToJson(GithubUserLanguage instance) => - { - 'color': instance.color, - 'name': instance.name, - '__typename': instance.resolveType, - }; - -GithubUserNode _$GithubUserNodeFromJson(Map json) { - return GithubUserNode()..resolveType = json['__typename'] as String; -} - -Map _$GithubUserNodeToJson(GithubUserNode instance) => - { - '__typename': instance.resolveType, - }; - -GithubUserPinnableItem _$GithubUserPinnableItemFromJson( - Map json) { - return GithubUserPinnableItem(); -} - -Map _$GithubUserPinnableItemToJson( - GithubUserPinnableItem instance) => - {}; - -GithubUserProjectOwner _$GithubUserProjectOwnerFromJson( - Map json) { - return GithubUserProjectOwner()..resolveType = json['__typename'] as String; -} - -Map _$GithubUserProjectOwnerToJson( - GithubUserProjectOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubUserRegistryPackageOwner _$GithubUserRegistryPackageOwnerFromJson( - Map json) { - return GithubUserRegistryPackageOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserRegistryPackageOwnerToJson( - GithubUserRegistryPackageOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubUserRegistryPackageSearch _$GithubUserRegistryPackageSearchFromJson( - Map json) { - return GithubUserRegistryPackageSearch() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserRegistryPackageSearchToJson( - GithubUserRegistryPackageSearch instance) => - { - '__typename': instance.resolveType, - }; - -GithubUserSubscribable _$GithubUserSubscribableFromJson( - Map json) { - return GithubUserSubscribable()..resolveType = json['__typename'] as String; -} - -Map _$GithubUserSubscribableToJson( - GithubUserSubscribable instance) => - { - '__typename': instance.resolveType, - }; - -GithubUserStarrable _$GithubUserStarrableFromJson(Map json) { - return GithubUserStarrable() - ..stargazers = json['stargazers'] == null - ? null - : GithubUserStargazerConnection.fromJson( - json['stargazers'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserStarrableToJson( - GithubUserStarrable instance) => - { - 'stargazers': instance.stargazers?.toJson(), - '__typename': instance.resolveType, - }; - -GithubUserUniformResourceLocatable _$GithubUserUniformResourceLocatableFromJson( - Map json) { - return GithubUserUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserUniformResourceLocatableToJson( - GithubUserUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GithubUserRepositoryInfo _$GithubUserRepositoryInfoFromJson( - Map json) { - return GithubUserRepositoryInfo() - ..owner = json['owner'] == null - ? null - : GithubUserRepositoryOwner.fromJson( - json['owner'] as Map) - ..name = json['name'] as String - ..description = json['description'] as String - ..isPrivate = json['isPrivate'] as bool - ..isFork = json['isFork'] as bool - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserRepositoryInfoToJson( - GithubUserRepositoryInfo instance) => - { - 'owner': instance.owner?.toJson(), - 'name': instance.name, - 'description': instance.description, - 'isPrivate': instance.isPrivate, - 'isFork': instance.isFork, - '__typename': instance.resolveType, - }; - -GithubUserPinnableItemConnection _$GithubUserPinnableItemConnectionFromJson( - Map json) { - return GithubUserPinnableItemConnection() - ..totalCount = json['totalCount'] as int - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubUserPinnableItem.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubUserPinnableItemConnectionToJson( - GithubUserPinnableItemConnection instance) => - { - 'totalCount': instance.totalCount, - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubUserAuditEntryActor _$GithubUserAuditEntryActorFromJson( - Map json) { - return GithubUserAuditEntryActor(); -} - -Map _$GithubUserAuditEntryActorToJson( - GithubUserAuditEntryActor instance) => - {}; - -GithubUserActor _$GithubUserActorFromJson(Map json) { - return GithubUserActor()..resolveType = json['__typename'] as String; -} - -Map _$GithubUserActorToJson(GithubUserActor instance) => - { - '__typename': instance.resolveType, - }; - -GithubUserProfileOwner _$GithubUserProfileOwnerFromJson( - Map json) { - return GithubUserProfileOwner() - ..name = json['name'] as String - ..location = json['location'] as String - ..email = json['email'] as String - ..websiteUrl = json['websiteUrl'] as String - ..pinnedItems = json['pinnedItems'] == null - ? null - : GithubUserPinnableItemConnection.fromJson( - json['pinnedItems'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserProfileOwnerToJson( - GithubUserProfileOwner instance) => - { - 'name': instance.name, - 'location': instance.location, - 'email': instance.email, - 'websiteUrl': instance.websiteUrl, - 'pinnedItems': instance.pinnedItems?.toJson(), - '__typename': instance.resolveType, - }; - -GithubUserSponsorable _$GithubUserSponsorableFromJson( - Map json) { - return GithubUserSponsorable()..resolveType = json['__typename'] as String; -} - -Map _$GithubUserSponsorableToJson( - GithubUserSponsorable instance) => - { - '__typename': instance.resolveType, - }; - -GithubUserOrganization _$GithubUserOrganizationFromJson( - Map json) { - return GithubUserOrganization() - ..name = json['name'] as String - ..description = json['description'] as String - ..location = json['location'] as String - ..email = json['email'] as String - ..websiteUrl = json['websiteUrl'] as String - ..createdAt = json['createdAt'] == null - ? null - : DateTime.parse(json['createdAt'] as String) - ..pinnedItems = json['pinnedItems'] == null - ? null - : GithubUserPinnableItemConnection.fromJson( - json['pinnedItems'] as Map) - ..pinnableItems = json['pinnableItems'] == null - ? null - : GithubUserPinnableItemConnection.fromJson( - json['pinnableItems'] as Map) - ..membersWithRole = json['membersWithRole'] == null - ? null - : GithubUserOrganizationMemberConnection.fromJson( - json['membersWithRole'] as Map) - ..resolveType = json['__typename'] as String - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..url = json['url'] as String; -} - -Map _$GithubUserOrganizationToJson( - GithubUserOrganization instance) => - { - 'name': instance.name, - 'description': instance.description, - 'location': instance.location, - 'email': instance.email, - 'websiteUrl': instance.websiteUrl, - 'createdAt': instance.createdAt?.toIso8601String(), - 'pinnedItems': instance.pinnedItems?.toJson(), - 'pinnableItems': instance.pinnableItems?.toJson(), - 'membersWithRole': instance.membersWithRole?.toJson(), - '__typename': instance.resolveType, - 'login': instance.login, - 'avatarUrl': instance.avatarUrl, - 'url': instance.url, - }; - -GithubUserOrganizationMemberConnection - _$GithubUserOrganizationMemberConnectionFromJson( - Map json) { - return GithubUserOrganizationMemberConnection() - ..totalCount = json['totalCount'] as int; -} - -Map _$GithubUserOrganizationMemberConnectionToJson( - GithubUserOrganizationMemberConnection instance) => - { - 'totalCount': instance.totalCount, - }; - -GithubUserMemberStatusable _$GithubUserMemberStatusableFromJson( - Map json) { - return GithubUserMemberStatusable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUserMemberStatusableToJson( - GithubUserMemberStatusable instance) => - { - '__typename': instance.resolveType, - }; - -GithubUserArguments _$GithubUserArgumentsFromJson(Map json) { - return GithubUserArguments( - login: json['login'] as String, - isViewer: json['isViewer'] as bool, - ); -} - -Map _$GithubUserArgumentsToJson( - GithubUserArguments instance) => - { - 'login': instance.login, - 'isViewer': instance.isViewer, - }; diff --git a/lib/graphql/github_users.dart b/lib/graphql/github_users.dart deleted file mode 100644 index 5a3d5ba..0000000 --- a/lib/graphql/github_users.dart +++ /dev/null @@ -1,1138 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -import 'package:artemis/artemis.dart'; -import 'package:json_annotation/json_annotation.dart'; -import 'package:equatable/equatable.dart'; -import 'package:gql/ast.dart'; -part 'github_users.g.dart'; - -@JsonSerializable(explicitToJson: true) -class GithubUsers with EquatableMixin { - GithubUsers(); - - factory GithubUsers.fromJson(Map json) => - _$GithubUsersFromJson(json); - - GithubUsersUser user; - - GithubUsersOrganization organization; - - GithubUsersRepository repository; - - @override - List get props => [user, organization, repository]; - Map toJson() => _$GithubUsersToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersUser extends GithubUsersAuditEntryActor - with EquatableMixin - implements - GithubUsersNode, - GithubUsersActor, - GithubUsersRegistryPackageOwner, - GithubUsersRegistryPackageSearch, - GithubUsersProjectOwner, - GithubUsersRepositoryOwner, - GithubUsersUniformResourceLocatable, - GithubUsersProfileOwner, - GithubUsersSponsorable { - GithubUsersUser(); - - factory GithubUsersUser.fromJson(Map json) => - _$GithubUsersUserFromJson(json); - - @override - String login; - - @override - String name; - - @override - String avatarUrl; - - String company; - - @override - String location; - - DateTime createdAt; - - GithubUsersFollowerConnection followers; - - GithubUsersFollowingConnection following; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [ - login, - name, - avatarUrl, - company, - location, - createdAt, - followers, - following, - resolveType - ]; - Map toJson() => _$GithubUsersUserToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersFollowerConnection with EquatableMixin { - GithubUsersFollowerConnection(); - - factory GithubUsersFollowerConnection.fromJson(Map json) => - _$GithubUsersFollowerConnectionFromJson(json); - - GithubUsersPageInfo pageInfo; - - List nodes; - - @override - List get props => [pageInfo, nodes]; - Map toJson() => _$GithubUsersFollowerConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersPageInfo with EquatableMixin { - GithubUsersPageInfo(); - - factory GithubUsersPageInfo.fromJson(Map json) => - _$GithubUsersPageInfoFromJson(json); - - bool hasNextPage; - - String endCursor; - - @override - List get props => [hasNextPage, endCursor]; - Map toJson() => _$GithubUsersPageInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersAuditEntryActor with EquatableMixin { - GithubUsersAuditEntryActor(); - - factory GithubUsersAuditEntryActor.fromJson(Map json) => - _$GithubUsersAuditEntryActorFromJson(json); - - @override - List get props => []; - Map toJson() => _$GithubUsersAuditEntryActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersNode with EquatableMixin { - GithubUsersNode(); - - factory GithubUsersNode.fromJson(Map json) => - _$GithubUsersNodeFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUsersNodeToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersActor with EquatableMixin { - GithubUsersActor(); - - factory GithubUsersActor.fromJson(Map json) => - _$GithubUsersActorFromJson(json); - - String login; - - String avatarUrl; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, avatarUrl, resolveType]; - Map toJson() => _$GithubUsersActorToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersRegistryPackageOwner with EquatableMixin { - GithubUsersRegistryPackageOwner(); - - factory GithubUsersRegistryPackageOwner.fromJson(Map json) => - _$GithubUsersRegistryPackageOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubUsersRegistryPackageOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersRegistryPackageSearch with EquatableMixin { - GithubUsersRegistryPackageSearch(); - - factory GithubUsersRegistryPackageSearch.fromJson( - Map json) => - _$GithubUsersRegistryPackageSearchFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubUsersRegistryPackageSearchToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersProjectOwner with EquatableMixin { - GithubUsersProjectOwner(); - - factory GithubUsersProjectOwner.fromJson(Map json) => - _$GithubUsersProjectOwnerFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUsersProjectOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersRepositoryOwner with EquatableMixin { - GithubUsersRepositoryOwner(); - - factory GithubUsersRepositoryOwner.fromJson(Map json) => - _$GithubUsersRepositoryOwnerFromJson(json); - - String login; - - String avatarUrl; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, avatarUrl, resolveType]; - Map toJson() => _$GithubUsersRepositoryOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersUniformResourceLocatable with EquatableMixin { - GithubUsersUniformResourceLocatable(); - - factory GithubUsersUniformResourceLocatable.fromJson( - Map json) => - _$GithubUsersUniformResourceLocatableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => - _$GithubUsersUniformResourceLocatableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersProfileOwner with EquatableMixin { - GithubUsersProfileOwner(); - - factory GithubUsersProfileOwner.fromJson(Map json) => - _$GithubUsersProfileOwnerFromJson(json); - - String login; - - String name; - - String location; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [login, name, location, resolveType]; - Map toJson() => _$GithubUsersProfileOwnerToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersSponsorable with EquatableMixin { - GithubUsersSponsorable(); - - factory GithubUsersSponsorable.fromJson(Map json) => - _$GithubUsersSponsorableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUsersSponsorableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersFollowingConnection with EquatableMixin { - GithubUsersFollowingConnection(); - - factory GithubUsersFollowingConnection.fromJson(Map json) => - _$GithubUsersFollowingConnectionFromJson(json); - - GithubUsersPageInfo pageInfo; - - List nodes; - - @override - List get props => [pageInfo, nodes]; - Map toJson() => _$GithubUsersFollowingConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersOrganization extends GithubUsersAuditEntryActor - with EquatableMixin - implements - GithubUsersNode, - GithubUsersActor, - GithubUsersRegistryPackageOwner, - GithubUsersRegistryPackageSearch, - GithubUsersProjectOwner, - GithubUsersRepositoryOwner, - GithubUsersUniformResourceLocatable, - GithubUsersMemberStatusable, - GithubUsersProfileOwner, - GithubUsersSponsorable { - GithubUsersOrganization(); - - factory GithubUsersOrganization.fromJson(Map json) => - _$GithubUsersOrganizationFromJson(json); - - @override - String login; - - @override - String name; - - @override - String avatarUrl; - - @override - String location; - - GithubUsersOrganizationMemberConnection membersWithRole; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => - [login, name, avatarUrl, location, membersWithRole, resolveType]; - Map toJson() => _$GithubUsersOrganizationToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersOrganizationMemberConnection with EquatableMixin { - GithubUsersOrganizationMemberConnection(); - - factory GithubUsersOrganizationMemberConnection.fromJson( - Map json) => - _$GithubUsersOrganizationMemberConnectionFromJson(json); - - GithubUsersPageInfo pageInfo; - - List nodes; - - @override - List get props => [pageInfo, nodes]; - Map toJson() => - _$GithubUsersOrganizationMemberConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersMemberStatusable with EquatableMixin { - GithubUsersMemberStatusable(); - - factory GithubUsersMemberStatusable.fromJson(Map json) => - _$GithubUsersMemberStatusableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUsersMemberStatusableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersRepository extends GithubUsersPinnableItem - with EquatableMixin - implements - GithubUsersNode, - GithubUsersProjectOwner, - GithubUsersRegistryPackageOwner, - GithubUsersRegistryPackageSearch, - GithubUsersSubscribable, - GithubUsersStarrable, - GithubUsersUniformResourceLocatable, - GithubUsersRepositoryInfo { - GithubUsersRepository(); - - factory GithubUsersRepository.fromJson(Map json) => - _$GithubUsersRepositoryFromJson(json); - - GithubUsersUserConnection watchers; - - @override - GithubUsersStargazerConnection stargazers; - - @override - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [watchers, stargazers, resolveType]; - Map toJson() => _$GithubUsersRepositoryToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersUserConnection with EquatableMixin { - GithubUsersUserConnection(); - - factory GithubUsersUserConnection.fromJson(Map json) => - _$GithubUsersUserConnectionFromJson(json); - - GithubUsersPageInfo pageInfo; - - List nodes; - - @override - List get props => [pageInfo, nodes]; - Map toJson() => _$GithubUsersUserConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersStargazerConnection with EquatableMixin { - GithubUsersStargazerConnection(); - - factory GithubUsersStargazerConnection.fromJson(Map json) => - _$GithubUsersStargazerConnectionFromJson(json); - - GithubUsersPageInfo pageInfo; - - List nodes; - - @override - List get props => [pageInfo, nodes]; - Map toJson() => _$GithubUsersStargazerConnectionToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersPinnableItem with EquatableMixin { - GithubUsersPinnableItem(); - - factory GithubUsersPinnableItem.fromJson(Map json) => - _$GithubUsersPinnableItemFromJson(json); - - @override - List get props => []; - Map toJson() => _$GithubUsersPinnableItemToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersSubscribable with EquatableMixin { - GithubUsersSubscribable(); - - factory GithubUsersSubscribable.fromJson(Map json) => - _$GithubUsersSubscribableFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUsersSubscribableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersStarrable with EquatableMixin { - GithubUsersStarrable(); - - factory GithubUsersStarrable.fromJson(Map json) => - _$GithubUsersStarrableFromJson(json); - - GithubUsersStargazerConnection stargazers; - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [stargazers, resolveType]; - Map toJson() => _$GithubUsersStarrableToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersRepositoryInfo with EquatableMixin { - GithubUsersRepositoryInfo(); - - factory GithubUsersRepositoryInfo.fromJson(Map json) => - _$GithubUsersRepositoryInfoFromJson(json); - - @JsonKey(name: '__typename') - String resolveType; - - @override - List get props => [resolveType]; - Map toJson() => _$GithubUsersRepositoryInfoToJson(this); -} - -@JsonSerializable(explicitToJson: true) -class GithubUsersArguments extends JsonSerializable with EquatableMixin { - GithubUsersArguments( - {this.login, - this.repoName, - this.after, - this.isFollowers, - this.isFollowing, - this.isMember, - this.isStar, - this.isWatch}); - - factory GithubUsersArguments.fromJson(Map json) => - _$GithubUsersArgumentsFromJson(json); - - final String login; - - final String repoName; - - final String after; - - final bool isFollowers; - - final bool isFollowing; - - final bool isMember; - - final bool isStar; - - final bool isWatch; - - @override - List get props => [ - login, - repoName, - after, - isFollowers, - isFollowing, - isMember, - isStar, - isWatch - ]; - Map toJson() => _$GithubUsersArgumentsToJson(this); -} - -class GithubUsersQuery extends GraphQLQuery { - GithubUsersQuery({this.variables}); - - @override - final DocumentNode document = DocumentNode(definitions: [ - OperationDefinitionNode( - type: OperationType.query, - name: null, - variableDefinitions: [ - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'login')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'repoName')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'after')), - type: NamedTypeNode( - name: NameNode(value: 'String'), isNonNull: false), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'isFollowers')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'isFollowing')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'isMember')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'isStar')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []), - VariableDefinitionNode( - variable: VariableNode(name: NameNode(value: 'isWatch')), - type: NamedTypeNode( - name: NameNode(value: 'Boolean'), isNonNull: true), - defaultValue: DefaultValueNode(value: null), - directives: []) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'user'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'login'), - value: VariableNode(name: NameNode(value: 'login'))) - ], - directives: [ - DirectiveNode(name: NameNode(value: 'skip'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode(name: NameNode(value: 'isMember'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'company'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'followers'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '30')), - ArgumentNode( - name: NameNode(value: 'after'), - value: VariableNode(name: NameNode(value: 'after'))) - ], - directives: [ - DirectiveNode( - name: NameNode(value: 'include'), - arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'isFollowers'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'pageInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hasNextPage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'endCursor'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'company'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])), - FieldNode( - name: NameNode(value: 'following'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '30')), - ArgumentNode( - name: NameNode(value: 'after'), - value: VariableNode(name: NameNode(value: 'after'))) - ], - directives: [ - DirectiveNode( - name: NameNode(value: 'include'), - arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'isFollowing'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'pageInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hasNextPage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'endCursor'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'company'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'organization'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'login'), - value: VariableNode(name: NameNode(value: 'login'))) - ], - directives: [ - DirectiveNode(name: NameNode(value: 'include'), arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode(name: NameNode(value: 'isMember'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'membersWithRole'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '30')), - ArgumentNode( - name: NameNode(value: 'after'), - value: VariableNode(name: NameNode(value: 'after'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'pageInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hasNextPage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'endCursor'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'company'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])), - FieldNode( - name: NameNode(value: 'repository'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'owner'), - value: VariableNode(name: NameNode(value: 'login'))), - ArgumentNode( - name: NameNode(value: 'name'), - value: VariableNode(name: NameNode(value: 'repoName'))) - ], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'watchers'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '30')), - ArgumentNode( - name: NameNode(value: 'after'), - value: VariableNode(name: NameNode(value: 'after'))) - ], - directives: [ - DirectiveNode( - name: NameNode(value: 'include'), - arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'isWatch'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'pageInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hasNextPage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'endCursor'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'company'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])), - FieldNode( - name: NameNode(value: 'stargazers'), - alias: null, - arguments: [ - ArgumentNode( - name: NameNode(value: 'first'), - value: IntValueNode(value: '30')), - ArgumentNode( - name: NameNode(value: 'after'), - value: VariableNode(name: NameNode(value: 'after'))) - ], - directives: [ - DirectiveNode( - name: NameNode(value: 'include'), - arguments: [ - ArgumentNode( - name: NameNode(value: 'if'), - value: VariableNode( - name: NameNode(value: 'isStar'))) - ]) - ], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'pageInfo'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'hasNextPage'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'endCursor'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])), - FieldNode( - name: NameNode(value: 'nodes'), - alias: null, - arguments: [], - directives: [], - selectionSet: SelectionSetNode(selections: [ - FieldNode( - name: NameNode(value: 'login'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'name'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'avatarUrl'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'company'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'location'), - alias: null, - arguments: [], - directives: [], - selectionSet: null), - FieldNode( - name: NameNode(value: 'createdAt'), - alias: null, - arguments: [], - directives: [], - selectionSet: null) - ])) - ])) - ])) - ])) - ]); - - @override - final String operationName = 'github_users'; - - @override - final GithubUsersArguments variables; - - @override - List get props => [document, operationName, variables]; - @override - GithubUsers parse(Map json) => GithubUsers.fromJson(json); -} diff --git a/lib/graphql/github_users.g.dart b/lib/graphql/github_users.g.dart deleted file mode 100644 index b443af1..0000000 --- a/lib/graphql/github_users.g.dart +++ /dev/null @@ -1,434 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'github_users.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -GithubUsers _$GithubUsersFromJson(Map json) { - return GithubUsers() - ..user = json['user'] == null - ? null - : GithubUsersUser.fromJson(json['user'] as Map) - ..organization = json['organization'] == null - ? null - : GithubUsersOrganization.fromJson( - json['organization'] as Map) - ..repository = json['repository'] == null - ? null - : GithubUsersRepository.fromJson( - json['repository'] as Map); -} - -Map _$GithubUsersToJson(GithubUsers instance) => - { - 'user': instance.user?.toJson(), - 'organization': instance.organization?.toJson(), - 'repository': instance.repository?.toJson(), - }; - -GithubUsersUser _$GithubUsersUserFromJson(Map json) { - return GithubUsersUser() - ..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 - : GithubUsersFollowerConnection.fromJson( - json['followers'] as Map) - ..following = json['following'] == null - ? null - : GithubUsersFollowingConnection.fromJson( - json['following'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersUserToJson(GithubUsersUser instance) => - { - 'login': instance.login, - 'name': instance.name, - 'avatarUrl': instance.avatarUrl, - 'company': instance.company, - 'location': instance.location, - 'createdAt': instance.createdAt?.toIso8601String(), - 'followers': instance.followers?.toJson(), - 'following': instance.following?.toJson(), - '__typename': instance.resolveType, - }; - -GithubUsersFollowerConnection _$GithubUsersFollowerConnectionFromJson( - Map json) { - return GithubUsersFollowerConnection() - ..pageInfo = json['pageInfo'] == null - ? null - : GithubUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubUsersUser.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubUsersFollowerConnectionToJson( - GithubUsersFollowerConnection instance) => - { - 'pageInfo': instance.pageInfo?.toJson(), - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubUsersPageInfo _$GithubUsersPageInfoFromJson(Map json) { - return GithubUsersPageInfo() - ..hasNextPage = json['hasNextPage'] as bool - ..endCursor = json['endCursor'] as String; -} - -Map _$GithubUsersPageInfoToJson( - GithubUsersPageInfo instance) => - { - 'hasNextPage': instance.hasNextPage, - 'endCursor': instance.endCursor, - }; - -GithubUsersAuditEntryActor _$GithubUsersAuditEntryActorFromJson( - Map json) { - return GithubUsersAuditEntryActor(); -} - -Map _$GithubUsersAuditEntryActorToJson( - GithubUsersAuditEntryActor instance) => - {}; - -GithubUsersNode _$GithubUsersNodeFromJson(Map json) { - return GithubUsersNode()..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersNodeToJson(GithubUsersNode instance) => - { - '__typename': instance.resolveType, - }; - -GithubUsersActor _$GithubUsersActorFromJson(Map json) { - return GithubUsersActor() - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersActorToJson(GithubUsersActor instance) => - { - 'login': instance.login, - 'avatarUrl': instance.avatarUrl, - '__typename': instance.resolveType, - }; - -GithubUsersRegistryPackageOwner _$GithubUsersRegistryPackageOwnerFromJson( - Map json) { - return GithubUsersRegistryPackageOwner() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersRegistryPackageOwnerToJson( - GithubUsersRegistryPackageOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubUsersRegistryPackageSearch _$GithubUsersRegistryPackageSearchFromJson( - Map json) { - return GithubUsersRegistryPackageSearch() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersRegistryPackageSearchToJson( - GithubUsersRegistryPackageSearch instance) => - { - '__typename': instance.resolveType, - }; - -GithubUsersProjectOwner _$GithubUsersProjectOwnerFromJson( - Map json) { - return GithubUsersProjectOwner()..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersProjectOwnerToJson( - GithubUsersProjectOwner instance) => - { - '__typename': instance.resolveType, - }; - -GithubUsersRepositoryOwner _$GithubUsersRepositoryOwnerFromJson( - Map json) { - return GithubUsersRepositoryOwner() - ..login = json['login'] as String - ..avatarUrl = json['avatarUrl'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersRepositoryOwnerToJson( - GithubUsersRepositoryOwner instance) => - { - 'login': instance.login, - 'avatarUrl': instance.avatarUrl, - '__typename': instance.resolveType, - }; - -GithubUsersUniformResourceLocatable - _$GithubUsersUniformResourceLocatableFromJson(Map json) { - return GithubUsersUniformResourceLocatable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersUniformResourceLocatableToJson( - GithubUsersUniformResourceLocatable instance) => - { - '__typename': instance.resolveType, - }; - -GithubUsersProfileOwner _$GithubUsersProfileOwnerFromJson( - Map json) { - return GithubUsersProfileOwner() - ..login = json['login'] as String - ..name = json['name'] as String - ..location = json['location'] as String - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersProfileOwnerToJson( - GithubUsersProfileOwner instance) => - { - 'login': instance.login, - 'name': instance.name, - 'location': instance.location, - '__typename': instance.resolveType, - }; - -GithubUsersSponsorable _$GithubUsersSponsorableFromJson( - Map json) { - return GithubUsersSponsorable()..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersSponsorableToJson( - GithubUsersSponsorable instance) => - { - '__typename': instance.resolveType, - }; - -GithubUsersFollowingConnection _$GithubUsersFollowingConnectionFromJson( - Map json) { - return GithubUsersFollowingConnection() - ..pageInfo = json['pageInfo'] == null - ? null - : GithubUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubUsersUser.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubUsersFollowingConnectionToJson( - GithubUsersFollowingConnection instance) => - { - 'pageInfo': instance.pageInfo?.toJson(), - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubUsersOrganization _$GithubUsersOrganizationFromJson( - Map json) { - return GithubUsersOrganization() - ..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 - : GithubUsersOrganizationMemberConnection.fromJson( - json['membersWithRole'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersOrganizationToJson( - GithubUsersOrganization instance) => - { - 'login': instance.login, - 'name': instance.name, - 'avatarUrl': instance.avatarUrl, - 'location': instance.location, - 'membersWithRole': instance.membersWithRole?.toJson(), - '__typename': instance.resolveType, - }; - -GithubUsersOrganizationMemberConnection - _$GithubUsersOrganizationMemberConnectionFromJson( - Map json) { - return GithubUsersOrganizationMemberConnection() - ..pageInfo = json['pageInfo'] == null - ? null - : GithubUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubUsersUser.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubUsersOrganizationMemberConnectionToJson( - GithubUsersOrganizationMemberConnection instance) => - { - 'pageInfo': instance.pageInfo?.toJson(), - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubUsersMemberStatusable _$GithubUsersMemberStatusableFromJson( - Map json) { - return GithubUsersMemberStatusable() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersMemberStatusableToJson( - GithubUsersMemberStatusable instance) => - { - '__typename': instance.resolveType, - }; - -GithubUsersRepository _$GithubUsersRepositoryFromJson( - Map json) { - return GithubUsersRepository() - ..watchers = json['watchers'] == null - ? null - : GithubUsersUserConnection.fromJson( - json['watchers'] as Map) - ..stargazers = json['stargazers'] == null - ? null - : GithubUsersStargazerConnection.fromJson( - json['stargazers'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersRepositoryToJson( - GithubUsersRepository instance) => - { - 'watchers': instance.watchers?.toJson(), - 'stargazers': instance.stargazers?.toJson(), - '__typename': instance.resolveType, - }; - -GithubUsersUserConnection _$GithubUsersUserConnectionFromJson( - Map json) { - return GithubUsersUserConnection() - ..pageInfo = json['pageInfo'] == null - ? null - : GithubUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubUsersUser.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubUsersUserConnectionToJson( - GithubUsersUserConnection instance) => - { - 'pageInfo': instance.pageInfo?.toJson(), - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubUsersStargazerConnection _$GithubUsersStargazerConnectionFromJson( - Map json) { - return GithubUsersStargazerConnection() - ..pageInfo = json['pageInfo'] == null - ? null - : GithubUsersPageInfo.fromJson(json['pageInfo'] as Map) - ..nodes = (json['nodes'] as List) - ?.map((e) => e == null - ? null - : GithubUsersUser.fromJson(e as Map)) - ?.toList(); -} - -Map _$GithubUsersStargazerConnectionToJson( - GithubUsersStargazerConnection instance) => - { - 'pageInfo': instance.pageInfo?.toJson(), - 'nodes': instance.nodes?.map((e) => e?.toJson())?.toList(), - }; - -GithubUsersPinnableItem _$GithubUsersPinnableItemFromJson( - Map json) { - return GithubUsersPinnableItem(); -} - -Map _$GithubUsersPinnableItemToJson( - GithubUsersPinnableItem instance) => - {}; - -GithubUsersSubscribable _$GithubUsersSubscribableFromJson( - Map json) { - return GithubUsersSubscribable()..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersSubscribableToJson( - GithubUsersSubscribable instance) => - { - '__typename': instance.resolveType, - }; - -GithubUsersStarrable _$GithubUsersStarrableFromJson(Map json) { - return GithubUsersStarrable() - ..stargazers = json['stargazers'] == null - ? null - : GithubUsersStargazerConnection.fromJson( - json['stargazers'] as Map) - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersStarrableToJson( - GithubUsersStarrable instance) => - { - 'stargazers': instance.stargazers?.toJson(), - '__typename': instance.resolveType, - }; - -GithubUsersRepositoryInfo _$GithubUsersRepositoryInfoFromJson( - Map json) { - return GithubUsersRepositoryInfo() - ..resolveType = json['__typename'] as String; -} - -Map _$GithubUsersRepositoryInfoToJson( - GithubUsersRepositoryInfo instance) => - { - '__typename': instance.resolveType, - }; - -GithubUsersArguments _$GithubUsersArgumentsFromJson(Map json) { - return GithubUsersArguments( - login: json['login'] as String, - repoName: json['repoName'] as String, - after: json['after'] as String, - isFollowers: json['isFollowers'] as bool, - isFollowing: json['isFollowing'] as bool, - isMember: json['isMember'] as bool, - isStar: json['isStar'] as bool, - isWatch: json['isWatch'] as bool, - ); -} - -Map _$GithubUsersArgumentsToJson( - GithubUsersArguments instance) => - { - 'login': instance.login, - 'repoName': instance.repoName, - 'after': instance.after, - 'isFollowers': instance.isFollowers, - 'isFollowing': instance.isFollowing, - 'isMember': instance.isMember, - 'isStar': instance.isStar, - 'isWatch': instance.isWatch, - }; diff --git a/lib/screens/commits.dart b/lib/screens/commits.dart index f412070..8879919 100644 --- a/lib/screens/commits.dart +++ b/lib/screens/commits.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:git_touch/graphql/github_commits.dart'; +import 'package:git_touch/graphql/gh.dart'; import 'package:git_touch/models/auth.dart'; import 'package:git_touch/models/theme.dart'; import 'package:git_touch/scaffolds/list_stateful.dart'; @@ -22,18 +22,18 @@ class CommitsScreen extends StatelessWidget { CommitsScreen(this.owner, this.name, {this.branch}); - Future> _query(BuildContext context, + Future> _query(BuildContext context, [String cursor]) async { final res = await Provider.of(context).gqlClient.execute( - GithubCommitsQuery( - variables: GithubCommitsArguments( + GhCommitsQuery( + variables: GhCommitsArguments( owner: owner, name: name, hasRef: branch != null, ref: branch ?? '', after: cursor))); final ref = res.data.repository.defaultBranchRef ?? res.data.repository.ref; - final history = (ref.target as GithubCommitsCommit).history; + final history = (ref.target as GhCommitsCommit).history; return ListPayload( cursor: history.pageInfo.endCursor, hasMore: history.pageInfo.hasNextPage, @@ -41,12 +41,12 @@ class CommitsScreen extends StatelessWidget { ); } - Widget _buildStatus(GithubCommitsStatusState state) { + Widget _buildStatus(GhCommitsStatusState state) { const size = 18.0; switch (state) { - case GithubCommitsStatusState.SUCCESS: + case GhCommitsStatusState.SUCCESS: return Icon(Octicons.check, color: GithubPalette.open, size: size); - case GithubCommitsStatusState.FAILURE: + case GhCommitsStatusState.FAILURE: return Icon(Octicons.x, color: GithubPalette.closed, size: size); default: return Container(); @@ -57,7 +57,7 @@ class CommitsScreen extends StatelessWidget { Widget build(BuildContext context) { final theme = Provider.of(context); - return ListStatefulScaffold( + return ListStatefulScaffold( title: AppBarTitle('Commits'), onRefresh: () => _query(context), onLoadMore: (cursor) => _query(context, cursor), diff --git a/lib/screens/object.dart b/lib/screens/object.dart index 6e88d1e..3bfa371 100644 --- a/lib/screens/object.dart +++ b/lib/screens/object.dart @@ -1,7 +1,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter_highlight/theme_map.dart'; import 'package:flutter_svg/flutter_svg.dart'; -import 'package:git_touch/graphql/github_object.dart'; +import 'package:git_touch/graphql/gh.dart'; import 'package:git_touch/models/code.dart'; import 'package:git_touch/models/theme.dart'; import 'package:git_touch/scaffolds/refresh_stateful.dart'; @@ -54,7 +54,7 @@ class ObjectScreen extends StatelessWidget { static const _iconDefaultColor = PrimerColors.blue300; - Widget _buildIcon(GithubObjectTreeEntry item) { + Widget _buildIcon(GhObjectTreeEntry item) { switch (item.type) { case 'blob': return SetiIcon(item.name, size: 36); @@ -74,14 +74,14 @@ class ObjectScreen extends StatelessWidget { @override Widget build(BuildContext context) { - return RefreshStatefulScaffold( + return RefreshStatefulScaffold( canRefresh: !_isImage, title: AppBarTitle(_path.isEmpty ? 'Files' : _path), fetchData: () async { final res = await Provider.of(context) .gqlClient - .execute(GithubObjectQuery( - variables: GithubObjectArguments( + .execute(GhObjectQuery( + variables: GhObjectArguments( owner: owner, name: name, expression: _expression, @@ -90,7 +90,7 @@ class ObjectScreen extends StatelessWidget { final data = res.data.repository.object; if (data.resolveType == 'Tree') { - (data as GithubObjectTree).entries.sort((a, b) { + (data as GhObjectTree).entries.sort((a, b) { if (a.type == 'tree' && b.type == 'blob') { return -1; } @@ -106,7 +106,7 @@ class ObjectScreen extends StatelessWidget { actionBuilder: (data, _) { switch (data.resolveType) { case 'Blob': - final blob = data as GithubObjectBlob; + final blob = data as GhObjectBlob; return ActionEntry( iconData: Octicons.settings, onTap: () { @@ -124,7 +124,7 @@ class ObjectScreen extends StatelessWidget { bodyBuilder: (data, _) { switch (data.resolveType) { case 'Tree': - final tree = data as GithubObjectTree; + final tree = data as GhObjectTree; return TableView( hasIcon: true, @@ -143,7 +143,7 @@ class ObjectScreen extends StatelessWidget { case 'Blob': final codeProvider = Provider.of(context); final theme = Provider.of(context); - final text = (data as GithubObjectBlob).text; + final text = (data as GhObjectBlob).text; switch (_extname) { // TODO: All image types diff --git a/lib/screens/repositories.dart b/lib/screens/repositories.dart index 2913341..ba87a8c 100644 --- a/lib/screens/repositories.dart +++ b/lib/screens/repositories.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:git_touch/graphql/github_repositories.dart'; +import 'package:git_touch/graphql/gh.dart'; import 'package:git_touch/scaffolds/list_stateful.dart'; import 'package:git_touch/utils/utils.dart'; import 'package:git_touch/widgets/app_bar_title.dart'; @@ -19,17 +19,16 @@ class RepositoriesScreen extends StatelessWidget { : title = 'Stars', isStar = true; - Future> _query( - BuildContext context, + Future> _query(BuildContext context, [String cursor]) async { final res = await Provider.of(context).gqlClient.execute( - GithubRepositoriesQuery( - variables: GithubRepositoriesArguments( - owner: owner, isStar: isStar, after: cursor))); + GhReposQuery( + variables: + GhReposArguments(owner: owner, isStar: isStar, after: cursor))); final data = res.data.repositoryOwner; switch (data.resolveType) { case 'User': - final user = data as GithubRepositoriesUser; + final user = data as GhReposUser; if (isStar) { return ListPayload( cursor: user.starredRepositories.pageInfo.endCursor, @@ -45,7 +44,7 @@ class RepositoriesScreen extends StatelessWidget { } break; case 'Organization': - final org = data as GithubRepositoriesOrganization; + final org = data as GhReposOrganization; return ListPayload( cursor: org.pinnableItems.pageInfo.endCursor, items: org.pinnableItems.nodes, @@ -58,7 +57,7 @@ class RepositoriesScreen extends StatelessWidget { @override Widget build(BuildContext context) { - return ListStatefulScaffold( + return ListStatefulScaffold( title: AppBarTitle(title), onRefresh: () => _query(context), onLoadMore: (cursor) => _query(context, cursor), diff --git a/lib/screens/repository.dart b/lib/screens/repository.dart index 8507764..e860340 100644 --- a/lib/screens/repository.dart +++ b/lib/screens/repository.dart @@ -2,7 +2,7 @@ import 'dart:convert'; import 'package:filesize/filesize.dart'; import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; -import 'package:git_touch/graphql/github_repository.dart'; +import 'package:git_touch/graphql/gh.dart'; import 'package:git_touch/models/auth.dart'; import 'package:git_touch/scaffolds/refresh_stateful.dart'; import 'package:git_touch/utils/utils.dart'; @@ -35,10 +35,10 @@ class RepositoryScreen extends StatelessWidget { RepositoryScreen(this.owner, this.name, {this.branch}); - Future _query(BuildContext context) async { + Future _query(BuildContext context) async { var res = await Provider.of(context).gqlClient.execute( - GithubRepositoryQuery( - variables: GithubRepositoryArguments( + GhRepoQuery( + variables: GhRepoArguments( owner: owner, name: name, branchSpecified: branch != null, @@ -61,14 +61,14 @@ class RepositoryScreen extends StatelessWidget { @override Widget build(BuildContext context) { - return RefreshStatefulScaffold>( + return RefreshStatefulScaffold>( title: AppBarTitle('Repository'), fetchData: () async { final rs = await Future.wait([ _query(context), _fetchReadme(context), ]); - return Tuple2(rs[0] as GithubRepositoryRepository, rs[1] as String); + return Tuple2(rs[0] as GhRepoRepository, rs[1] as String); }, actionBuilder: (data, setState) { final repo = data.item1; @@ -251,7 +251,7 @@ class RepositoryScreen extends StatelessWidget { height: 400, child: charts.PieChart( [ - charts.Series( + charts.Series( id: 'languages', domainFn: (v, _) => v.node.name, measureFn: (v, _) => v.size, @@ -332,7 +332,7 @@ class RepositoryScreen extends StatelessWidget { TableViewItem( leftIconData: Octicons.history, text: Text('Commits'), - rightWidget: Text((ref.target as GithubRepositoryCommit) + rightWidget: Text((ref.target as GhRepoCommit) .history ?.totalCount .toString()), diff --git a/lib/screens/user.dart b/lib/screens/user.dart index 6797e12..1df1f14 100644 --- a/lib/screens/user.dart +++ b/lib/screens/user.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; -import 'package:git_touch/graphql/github_user.dart'; +import 'package:git_touch/graphql/gh.dart'; import 'package:git_touch/models/theme.dart'; import 'package:git_touch/scaffolds/refresh_stateful.dart'; import 'package:git_touch/screens/users.dart'; @@ -45,10 +45,10 @@ class UserScreen extends StatelessWidget { bool get isViewer => login.isEmpty; - Iterable _buildPinnedItems(Iterable pinnedItems, - Iterable repositories) { + Iterable _buildPinnedItems(Iterable pinnedItems, + Iterable repositories) { String title; - Iterable items = []; + Iterable items = []; if (pinnedItems.isNotEmpty) { title = 'pinned repositories'; @@ -148,7 +148,7 @@ class UserScreen extends StatelessWidget { ); } - Widget _buildUser(BuildContext context, GithubUserUser user) { + Widget _buildUser(BuildContext context, GhUserUser user) { final theme = Provider.of(context); final login = user.login; return Column( @@ -280,16 +280,15 @@ class UserScreen extends StatelessWidget { else ..._buildPinnedItems( user.pinnedItems.nodes - .where((n) => n is GithubUserRepository) - .cast(), + .where((n) => n is GhUserRepository) + .cast(), user.repositories.nodes), CommonStyle.verticalGap, ], ); } - Widget _buildOrganization( - BuildContext context, GithubUserOrganization payload) { + Widget _buildOrganization(BuildContext context, GhUserOrganization payload) { return Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ @@ -346,11 +345,11 @@ class UserScreen extends StatelessWidget { CommonStyle.verticalGap, ..._buildPinnedItems( payload.pinnedItems.nodes - .where((n) => n is GithubUserRepository) - .cast(), + .where((n) => n is GhUserRepository) + .cast(), payload.pinnableItems.nodes - .where((n) => n is GithubUserRepository) - .cast(), + .where((n) => n is GhUserRepository) + .cast(), ), CommonStyle.verticalGap, ], @@ -359,19 +358,18 @@ class UserScreen extends StatelessWidget { @override Widget build(BuildContext context) { - return RefreshStatefulScaffold( + return RefreshStatefulScaffold( fetchData: () async { final data = await Provider.of(context).gqlClient.execute( - GithubUserQuery( - variables: - GithubUserArguments(login: login, isViewer: isViewer))); + GhUserQuery( + variables: GhUserArguments(login: login, isViewer: isViewer))); return isViewer ? data.data.viewer : data.data.repositoryOwner; }, title: AppBarTitle(isViewer ? 'Me' : login), actionBuilder: (payload, _) { switch (payload.resolveType) { case 'User': - final user = payload as GithubUserUser; + final user = payload as GhUserUser; return ActionButton( title: 'User Actions', items: [ @@ -398,7 +396,7 @@ class UserScreen extends StatelessWidget { ], ); case 'Organization': - final organization = payload as GithubUserOrganization; + final organization = payload as GhUserOrganization; return ActionButton( title: 'Organization Actions', items: [ @@ -414,14 +412,13 @@ class UserScreen extends StatelessWidget { }, bodyBuilder: (payload, _) { if (isViewer) { - return _buildUser(context, payload as GithubUserUser); + return _buildUser(context, payload as GhUserUser); } switch (payload.resolveType) { case 'User': - return _buildUser(context, payload as GithubUserUser); + return _buildUser(context, payload as GhUserUser); case 'Organization': - return _buildOrganization( - context, payload as GithubUserOrganization); + return _buildOrganization(context, payload as GhUserOrganization); default: return null; } diff --git a/lib/screens/users.dart b/lib/screens/users.dart index 09523bc..63c7aef 100644 --- a/lib/screens/users.dart +++ b/lib/screens/users.dart @@ -1,5 +1,5 @@ import 'package:flutter/material.dart'; -import 'package:git_touch/graphql/github_users.dart'; +import 'package:git_touch/graphql/gh.dart'; import 'package:git_touch/models/theme.dart'; import 'package:git_touch/scaffolds/list_stateful.dart'; import 'package:git_touch/utils/utils.dart'; @@ -40,11 +40,11 @@ class UsersScreen extends StatelessWidget { } } - Future> _queryUsers(BuildContext context, + Future> _queryUsers(BuildContext context, [String cursor]) async { final res = await Provider.of(context).gqlClient.execute( - GithubUsersQuery( - variables: GithubUsersArguments( + GhUsersQuery( + variables: GhUsersArguments( login: login, repoName: repoName, isFollowers: type == UsersScreenType.follower, @@ -139,7 +139,7 @@ class UsersScreen extends StatelessWidget { @override Widget build(BuildContext context) { - return ListStatefulScaffold( + return ListStatefulScaffold( title: AppBarTitle(_title), onRefresh: () => _queryUsers(context), onLoadMore: (cursor) => _queryUsers(context, cursor), diff --git a/lib/widgets/repository_item.dart b/lib/widgets/repository_item.dart index 5279c84..2ce4ef0 100644 --- a/lib/widgets/repository_item.dart +++ b/lib/widgets/repository_item.dart @@ -1,7 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; -import 'package:git_touch/graphql/github_repository.dart'; -import 'package:git_touch/graphql/github_user.dart'; +import 'package:git_touch/graphql/gh.dart'; // FIXME: import 'package:git_touch/models/gitea.dart'; import 'package:git_touch/models/gitlab.dart'; import 'package:git_touch/models/theme.dart'; @@ -44,7 +43,7 @@ class RepositoryItem extends StatelessWidget { final String primaryLanguageName; final String primaryLanguageColor; final bool inRepoScreen; - final Iterable topics; + final Iterable topics; RepositoryItem.raw( this.owner, @@ -75,8 +74,7 @@ class RepositoryItem extends StatelessWidget { : payload['primaryLanguage']['color'], this.topics = []; - RepositoryItem.github(GithubUserRepository payload, - {this.inRepoScreen = false}) + RepositoryItem.github(GhUserRepository payload, {this.inRepoScreen = false}) : this.owner = payload.owner.login, this.avatarUrl = payload.owner.avatarUrl, this.name = payload.name,