1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-25 07:13:57 +01:00
git-touch-android-ios-app/lib/graphql/github_user.dart

1399 lines
56 KiB
Dart
Raw Normal View History

// 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';
2019-12-07 08:28:43 +01:00
part 'github_user.g.dart';
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUser with EquatableMixin {
GithubUser();
2019-12-07 08:28:43 +01:00
factory GithubUser.fromJson(Map<String, dynamic> json) =>
_$GithubUserFromJson(json);
2019-12-07 08:28:43 +01:00
GithubUserRepositoryOwner repositoryOwner;
@override
List<Object> get props => [repositoryOwner];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserRepositoryOwner with EquatableMixin {
GithubUserRepositoryOwner();
2019-12-07 08:28:43 +01:00
factory GithubUserRepositoryOwner.fromJson(Map<String, dynamic> json) {
switch (json['__typename'].toString()) {
case 'User':
2019-12-07 08:28:43 +01:00
return GithubUserUser.fromJson(json);
case 'Organization':
2019-12-07 08:28:43 +01:00
return GithubUserOrganization.fromJson(json);
default:
}
2019-12-07 08:28:43 +01:00
return _$GithubUserRepositoryOwnerFromJson(json);
}
2019-12-07 14:12:48 +01:00
String login;
String avatarUrl;
String url;
@JsonKey(name: '__typename')
String resolveType;
@override
2019-12-07 14:12:48 +01:00
List<Object> get props => [login, avatarUrl, url, resolveType];
Map<String, dynamic> toJson() {
switch (resolveType) {
case 'User':
2019-12-07 08:28:43 +01:00
return (this as GithubUserUser).toJson();
case 'Organization':
2019-12-07 08:28:43 +01:00
return (this as GithubUserOrganization).toJson();
default:
}
2019-12-07 08:28:43 +01:00
return _$GithubUserRepositoryOwnerToJson(this);
}
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserUser extends GithubUserAuditEntryActor
with EquatableMixin
implements
2019-12-07 08:28:43 +01:00
GithubUserNode,
GithubUserActor,
GithubUserRegistryPackageOwner,
GithubUserRegistryPackageSearch,
GithubUserProjectOwner,
GithubUserRepositoryOwner,
GithubUserUniformResourceLocatable,
GithubUserProfileOwner,
GithubUserSponsorable {
GithubUserUser();
factory GithubUserUser.fromJson(Map<String, dynamic> json) =>
_$GithubUserUserFromJson(json);
String name;
String bio;
String company;
String location;
String email;
String websiteUrl;
2019-12-07 08:28:43 +01:00
GithubUserStarredRepositoryConnection starredRepositories;
2019-12-07 08:28:43 +01:00
GithubUserFollowerConnection followers;
2019-12-07 08:28:43 +01:00
GithubUserFollowingConnection following;
2019-12-07 08:28:43 +01:00
GithubUserRepositoryConnection repositories;
2019-12-07 08:28:43 +01:00
GithubUserPinnableItemConnection pinnedItems;
bool viewerCanFollow;
bool viewerIsFollowing;
@override
@JsonKey(name: '__typename')
String resolveType;
2019-12-07 14:12:48 +01:00
@override
String login;
@override
String avatarUrl;
@override
String url;
@override
List<Object> get props => [
name,
bio,
company,
location,
email,
websiteUrl,
starredRepositories,
followers,
following,
repositories,
pinnedItems,
viewerCanFollow,
viewerIsFollowing,
2019-12-07 14:12:48 +01:00
resolveType,
login,
avatarUrl,
url
];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserUserToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserStarredRepositoryConnection with EquatableMixin {
GithubUserStarredRepositoryConnection();
2019-12-07 08:28:43 +01:00
factory GithubUserStarredRepositoryConnection.fromJson(
Map<String, dynamic> json) =>
_$GithubUserStarredRepositoryConnectionFromJson(json);
int totalCount;
@override
List<Object> get props => [totalCount];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() =>
_$GithubUserStarredRepositoryConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserFollowerConnection with EquatableMixin {
GithubUserFollowerConnection();
2019-12-07 08:28:43 +01:00
factory GithubUserFollowerConnection.fromJson(Map<String, dynamic> json) =>
_$GithubUserFollowerConnectionFromJson(json);
int totalCount;
@override
List<Object> get props => [totalCount];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserFollowerConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserFollowingConnection with EquatableMixin {
GithubUserFollowingConnection();
2019-12-07 08:28:43 +01:00
factory GithubUserFollowingConnection.fromJson(Map<String, dynamic> json) =>
_$GithubUserFollowingConnectionFromJson(json);
int totalCount;
@override
List<Object> get props => [totalCount];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserFollowingConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserRepositoryConnection with EquatableMixin {
GithubUserRepositoryConnection();
2019-12-07 08:28:43 +01:00
factory GithubUserRepositoryConnection.fromJson(Map<String, dynamic> json) =>
_$GithubUserRepositoryConnectionFromJson(json);
int totalCount;
2019-12-07 08:28:43 +01:00
List<GithubUserRepository> nodes;
@override
List<Object> get props => [totalCount, nodes];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserRepositoryConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserRepository extends GithubUserPinnableItem
with EquatableMixin
implements
2019-12-07 08:28:43 +01:00
GithubUserNode,
GithubUserProjectOwner,
GithubUserRegistryPackageOwner,
GithubUserRegistryPackageSearch,
GithubUserSubscribable,
GithubUserStarrable,
GithubUserUniformResourceLocatable,
GithubUserRepositoryInfo {
GithubUserRepository();
factory GithubUserRepository.fromJson(Map<String, dynamic> json) =>
_$GithubUserRepositoryFromJson(json);
@override
2019-12-07 08:28:43 +01:00
GithubUserRepositoryOwner owner;
@override
String name;
@override
String description;
@override
bool isPrivate;
@override
bool isFork;
@override
2019-12-07 08:28:43 +01:00
GithubUserStargazerConnection stargazers;
2019-12-07 08:28:43 +01:00
GithubUserRepositoryConnection forks;
2019-12-07 08:28:43 +01:00
GithubUserLanguage primaryLanguage;
@override
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [
owner,
name,
description,
isPrivate,
isFork,
stargazers,
forks,
primaryLanguage,
resolveType
];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserRepositoryToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserStargazerConnection with EquatableMixin {
GithubUserStargazerConnection();
2019-12-07 08:28:43 +01:00
factory GithubUserStargazerConnection.fromJson(Map<String, dynamic> json) =>
_$GithubUserStargazerConnectionFromJson(json);
int totalCount;
@override
List<Object> get props => [totalCount];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserStargazerConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserLanguage with EquatableMixin implements GithubUserNode {
GithubUserLanguage();
2019-12-07 08:28:43 +01:00
factory GithubUserLanguage.fromJson(Map<String, dynamic> json) =>
_$GithubUserLanguageFromJson(json);
String color;
String name;
@override
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [color, name, resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserLanguageToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserNode with EquatableMixin {
GithubUserNode();
2019-12-07 08:28:43 +01:00
factory GithubUserNode.fromJson(Map<String, dynamic> json) =>
_$GithubUserNodeFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserNodeToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserPinnableItem with EquatableMixin {
GithubUserPinnableItem();
2019-12-07 08:28:43 +01:00
factory GithubUserPinnableItem.fromJson(Map<String, dynamic> json) =>
_$GithubUserPinnableItemFromJson(json);
@override
List<Object> get props => [];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserPinnableItemToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserProjectOwner with EquatableMixin {
GithubUserProjectOwner();
2019-12-07 08:28:43 +01:00
factory GithubUserProjectOwner.fromJson(Map<String, dynamic> json) =>
_$GithubUserProjectOwnerFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserProjectOwnerToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserRegistryPackageOwner with EquatableMixin {
GithubUserRegistryPackageOwner();
2019-12-07 08:28:43 +01:00
factory GithubUserRegistryPackageOwner.fromJson(Map<String, dynamic> json) =>
_$GithubUserRegistryPackageOwnerFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserRegistryPackageOwnerToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserRegistryPackageSearch with EquatableMixin {
GithubUserRegistryPackageSearch();
2019-12-07 08:28:43 +01:00
factory GithubUserRegistryPackageSearch.fromJson(Map<String, dynamic> json) =>
_$GithubUserRegistryPackageSearchFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() =>
_$GithubUserRegistryPackageSearchToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserSubscribable with EquatableMixin {
GithubUserSubscribable();
2019-12-07 08:28:43 +01:00
factory GithubUserSubscribable.fromJson(Map<String, dynamic> json) =>
_$GithubUserSubscribableFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserSubscribableToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserStarrable with EquatableMixin {
GithubUserStarrable();
2019-12-07 08:28:43 +01:00
factory GithubUserStarrable.fromJson(Map<String, dynamic> json) =>
_$GithubUserStarrableFromJson(json);
2019-12-07 08:28:43 +01:00
GithubUserStargazerConnection stargazers;
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [stargazers, resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserStarrableToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserUniformResourceLocatable with EquatableMixin {
GithubUserUniformResourceLocatable();
2019-12-07 08:28:43 +01:00
factory GithubUserUniformResourceLocatable.fromJson(
Map<String, dynamic> json) =>
_$GithubUserUniformResourceLocatableFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() =>
_$GithubUserUniformResourceLocatableToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserRepositoryInfo with EquatableMixin {
GithubUserRepositoryInfo();
2019-12-07 08:28:43 +01:00
factory GithubUserRepositoryInfo.fromJson(Map<String, dynamic> json) =>
_$GithubUserRepositoryInfoFromJson(json);
2019-12-07 08:28:43 +01:00
GithubUserRepositoryOwner owner;
String name;
String description;
bool isPrivate;
bool isFork;
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props =>
[owner, name, description, isPrivate, isFork, resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserRepositoryInfoToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserPinnableItemConnection with EquatableMixin {
GithubUserPinnableItemConnection();
2019-12-07 08:28:43 +01:00
factory GithubUserPinnableItemConnection.fromJson(
Map<String, dynamic> json) =>
_$GithubUserPinnableItemConnectionFromJson(json);
2019-12-07 06:31:54 +01:00
int totalCount;
2019-12-07 08:28:43 +01:00
List<GithubUserPinnableItem> nodes;
@override
2019-12-07 06:31:54 +01:00
List<Object> get props => [totalCount, nodes];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() =>
_$GithubUserPinnableItemConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserAuditEntryActor with EquatableMixin {
GithubUserAuditEntryActor();
2019-12-07 08:28:43 +01:00
factory GithubUserAuditEntryActor.fromJson(Map<String, dynamic> json) =>
_$GithubUserAuditEntryActorFromJson(json);
@override
List<Object> get props => [];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserAuditEntryActorToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserActor with EquatableMixin {
GithubUserActor();
2019-12-07 08:28:43 +01:00
factory GithubUserActor.fromJson(Map<String, dynamic> json) =>
_$GithubUserActorFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
2019-12-07 14:12:48 +01:00
List<Object> get props => [resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserActorToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserProfileOwner with EquatableMixin {
GithubUserProfileOwner();
2019-12-07 08:28:43 +01:00
factory GithubUserProfileOwner.fromJson(Map<String, dynamic> json) =>
_$GithubUserProfileOwnerFromJson(json);
String name;
String location;
String email;
String websiteUrl;
2019-12-07 08:28:43 +01:00
GithubUserPinnableItemConnection pinnedItems;
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props =>
2019-12-07 14:12:48 +01:00
[name, location, email, websiteUrl, pinnedItems, resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserProfileOwnerToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserSponsorable with EquatableMixin {
GithubUserSponsorable();
2019-12-07 08:28:43 +01:00
factory GithubUserSponsorable.fromJson(Map<String, dynamic> json) =>
_$GithubUserSponsorableFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserSponsorableToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserOrganization extends GithubUserAuditEntryActor
with EquatableMixin
implements
2019-12-07 08:28:43 +01:00
GithubUserNode,
GithubUserActor,
GithubUserRegistryPackageOwner,
GithubUserRegistryPackageSearch,
GithubUserProjectOwner,
GithubUserRepositoryOwner,
GithubUserUniformResourceLocatable,
GithubUserMemberStatusable,
GithubUserProfileOwner,
GithubUserSponsorable {
GithubUserOrganization();
factory GithubUserOrganization.fromJson(Map<String, dynamic> json) =>
_$GithubUserOrganizationFromJson(json);
String name;
String description;
String location;
String email;
String websiteUrl;
2019-12-07 08:28:43 +01:00
GithubUserPinnableItemConnection pinnedItems;
2019-12-07 08:28:43 +01:00
GithubUserPinnableItemConnection pinnableItems;
2019-12-07 08:28:43 +01:00
GithubUserOrganizationMemberConnection membersWithRole;
@override
@JsonKey(name: '__typename')
String resolveType;
2019-12-07 14:12:48 +01:00
@override
String login;
@override
String avatarUrl;
@override
String url;
@override
List<Object> get props => [
name,
description,
location,
email,
websiteUrl,
pinnedItems,
pinnableItems,
membersWithRole,
2019-12-07 14:12:48 +01:00
resolveType,
login,
avatarUrl,
url
];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserOrganizationToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserOrganizationMemberConnection with EquatableMixin {
GithubUserOrganizationMemberConnection();
2019-12-07 08:28:43 +01:00
factory GithubUserOrganizationMemberConnection.fromJson(
Map<String, dynamic> json) =>
_$GithubUserOrganizationMemberConnectionFromJson(json);
int totalCount;
@override
List<Object> get props => [totalCount];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() =>
_$GithubUserOrganizationMemberConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserMemberStatusable with EquatableMixin {
GithubUserMemberStatusable();
2019-12-07 08:28:43 +01:00
factory GithubUserMemberStatusable.fromJson(Map<String, dynamic> json) =>
_$GithubUserMemberStatusableFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserMemberStatusableToJson(this);
}
@JsonSerializable(explicitToJson: true)
2019-12-07 08:28:43 +01:00
class GithubUserArguments extends JsonSerializable with EquatableMixin {
GithubUserArguments({this.login});
2019-12-07 08:28:43 +01:00
factory GithubUserArguments.fromJson(Map<String, dynamic> json) =>
_$GithubUserArgumentsFromJson(json);
final String login;
@override
List<Object> get props => [login];
2019-12-07 08:28:43 +01:00
Map<String, dynamic> toJson() => _$GithubUserArgumentsToJson(this);
}
2019-12-07 08:28:43 +01:00
class GithubUserQuery extends GraphQLQuery<GithubUser, GithubUserArguments> {
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: [])
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'repositoryOwner'),
alias: null,
arguments: [
ArgumentNode(
name: NameNode(value: 'login'),
value: VariableNode(name: NameNode(value: 'login')))
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: '__typename'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
2019-12-07 14:12:48 +01:00
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: '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: '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: [
2019-12-07 06:31:54 +01:00
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: '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)
]))
]))
]))
]))
]);
@override
2019-12-07 08:28:43 +01:00
final String operationName = 'github_user';
@override
2019-12-07 08:28:43 +01:00
final GithubUserArguments variables;
@override
List<Object> get props => [document, operationName, variables];
@override
2019-12-07 08:28:43 +01:00
GithubUser parse(Map<String, dynamic> json) => GithubUser.fromJson(json);
}