1
0
mirror of https://github.com/git-touch/git-touch synced 2024-12-22 05:20:26 +01:00
git-touch-android-ios-app/lib/graphql/github_me.dart
2020-01-01 13:26:26 +08:00

566 lines
17 KiB
Dart

// 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_me.g.dart';
@JsonSerializable(explicitToJson: true)
class GithubMe with EquatableMixin {
GithubMe();
factory GithubMe.fromJson(Map<String, dynamic> json) =>
_$GithubMeFromJson(json);
GithubMeUser viewer;
@override
List<Object> get props => [viewer];
Map<String, dynamic> toJson() => _$GithubMeToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeUser extends GithubMeAuditEntryActor
with EquatableMixin
implements
GithubMeNode,
GithubMeActor,
GithubMeRegistryPackageOwner,
GithubMeRegistryPackageSearch,
GithubMeProjectOwner,
GithubMeRepositoryOwner,
GithubMeUniformResourceLocatable,
GithubMeProfileOwner,
GithubMeSponsorable {
GithubMeUser();
factory GithubMeUser.fromJson(Map<String, dynamic> json) =>
_$GithubMeUserFromJson(json);
@override
String login;
@override
String avatarUrl;
@override
String url;
@override
String name;
String bio;
String company;
@override
String location;
@override
String email;
@override
String websiteUrl;
GithubMeStarredRepositoryConnection starredRepositories;
GithubMeFollowerConnection followers;
GithubMeFollowingConnection following;
@override
GithubMeRepositoryConnection repositories;
GithubMeContributionsCollection contributionsCollection;
@override
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [
login,
avatarUrl,
url,
name,
bio,
company,
location,
email,
websiteUrl,
starredRepositories,
followers,
following,
repositories,
contributionsCollection,
resolveType
];
Map<String, dynamic> toJson() => _$GithubMeUserToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeStarredRepositoryConnection with EquatableMixin {
GithubMeStarredRepositoryConnection();
factory GithubMeStarredRepositoryConnection.fromJson(
Map<String, dynamic> json) =>
_$GithubMeStarredRepositoryConnectionFromJson(json);
int totalCount;
@override
List<Object> get props => [totalCount];
Map<String, dynamic> toJson() =>
_$GithubMeStarredRepositoryConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeFollowerConnection with EquatableMixin {
GithubMeFollowerConnection();
factory GithubMeFollowerConnection.fromJson(Map<String, dynamic> json) =>
_$GithubMeFollowerConnectionFromJson(json);
int totalCount;
@override
List<Object> get props => [totalCount];
Map<String, dynamic> toJson() => _$GithubMeFollowerConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeFollowingConnection with EquatableMixin {
GithubMeFollowingConnection();
factory GithubMeFollowingConnection.fromJson(Map<String, dynamic> json) =>
_$GithubMeFollowingConnectionFromJson(json);
int totalCount;
@override
List<Object> get props => [totalCount];
Map<String, dynamic> toJson() => _$GithubMeFollowingConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeRepositoryConnection with EquatableMixin {
GithubMeRepositoryConnection();
factory GithubMeRepositoryConnection.fromJson(Map<String, dynamic> json) =>
_$GithubMeRepositoryConnectionFromJson(json);
int totalCount;
@override
List<Object> get props => [totalCount];
Map<String, dynamic> toJson() => _$GithubMeRepositoryConnectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeContributionsCollection with EquatableMixin {
GithubMeContributionsCollection();
factory GithubMeContributionsCollection.fromJson(Map<String, dynamic> json) =>
_$GithubMeContributionsCollectionFromJson(json);
GithubMeContributionCalendar contributionCalendar;
@override
List<Object> get props => [contributionCalendar];
Map<String, dynamic> toJson() =>
_$GithubMeContributionsCollectionToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeContributionCalendar with EquatableMixin {
GithubMeContributionCalendar();
factory GithubMeContributionCalendar.fromJson(Map<String, dynamic> json) =>
_$GithubMeContributionCalendarFromJson(json);
List<GithubMeContributionCalendarWeek> weeks;
@override
List<Object> get props => [weeks];
Map<String, dynamic> toJson() => _$GithubMeContributionCalendarToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeContributionCalendarWeek with EquatableMixin {
GithubMeContributionCalendarWeek();
factory GithubMeContributionCalendarWeek.fromJson(
Map<String, dynamic> json) =>
_$GithubMeContributionCalendarWeekFromJson(json);
List<GithubMeContributionCalendarDay> contributionDays;
@override
List<Object> get props => [contributionDays];
Map<String, dynamic> toJson() =>
_$GithubMeContributionCalendarWeekToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeContributionCalendarDay with EquatableMixin {
GithubMeContributionCalendarDay();
factory GithubMeContributionCalendarDay.fromJson(Map<String, dynamic> json) =>
_$GithubMeContributionCalendarDayFromJson(json);
String color;
@override
List<Object> get props => [color];
Map<String, dynamic> toJson() =>
_$GithubMeContributionCalendarDayToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeAuditEntryActor with EquatableMixin {
GithubMeAuditEntryActor();
factory GithubMeAuditEntryActor.fromJson(Map<String, dynamic> json) =>
_$GithubMeAuditEntryActorFromJson(json);
@override
List<Object> get props => [];
Map<String, dynamic> toJson() => _$GithubMeAuditEntryActorToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeNode with EquatableMixin {
GithubMeNode();
factory GithubMeNode.fromJson(Map<String, dynamic> json) =>
_$GithubMeNodeFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
Map<String, dynamic> toJson() => _$GithubMeNodeToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeActor with EquatableMixin {
GithubMeActor();
factory GithubMeActor.fromJson(Map<String, dynamic> json) =>
_$GithubMeActorFromJson(json);
String login;
String avatarUrl;
String url;
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [login, avatarUrl, url, resolveType];
Map<String, dynamic> toJson() => _$GithubMeActorToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeRegistryPackageOwner with EquatableMixin {
GithubMeRegistryPackageOwner();
factory GithubMeRegistryPackageOwner.fromJson(Map<String, dynamic> json) =>
_$GithubMeRegistryPackageOwnerFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
Map<String, dynamic> toJson() => _$GithubMeRegistryPackageOwnerToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeRegistryPackageSearch with EquatableMixin {
GithubMeRegistryPackageSearch();
factory GithubMeRegistryPackageSearch.fromJson(Map<String, dynamic> json) =>
_$GithubMeRegistryPackageSearchFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
Map<String, dynamic> toJson() => _$GithubMeRegistryPackageSearchToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeProjectOwner with EquatableMixin {
GithubMeProjectOwner();
factory GithubMeProjectOwner.fromJson(Map<String, dynamic> json) =>
_$GithubMeProjectOwnerFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
Map<String, dynamic> toJson() => _$GithubMeProjectOwnerToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeRepositoryOwner with EquatableMixin {
GithubMeRepositoryOwner();
factory GithubMeRepositoryOwner.fromJson(Map<String, dynamic> json) =>
_$GithubMeRepositoryOwnerFromJson(json);
String login;
String avatarUrl;
String url;
GithubMeRepositoryConnection repositories;
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [login, avatarUrl, url, repositories, resolveType];
Map<String, dynamic> toJson() => _$GithubMeRepositoryOwnerToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeUniformResourceLocatable with EquatableMixin {
GithubMeUniformResourceLocatable();
factory GithubMeUniformResourceLocatable.fromJson(
Map<String, dynamic> json) =>
_$GithubMeUniformResourceLocatableFromJson(json);
String url;
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [url, resolveType];
Map<String, dynamic> toJson() =>
_$GithubMeUniformResourceLocatableToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeProfileOwner with EquatableMixin {
GithubMeProfileOwner();
factory GithubMeProfileOwner.fromJson(Map<String, dynamic> json) =>
_$GithubMeProfileOwnerFromJson(json);
String login;
String name;
String location;
String email;
String websiteUrl;
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props =>
[login, name, location, email, websiteUrl, resolveType];
Map<String, dynamic> toJson() => _$GithubMeProfileOwnerToJson(this);
}
@JsonSerializable(explicitToJson: true)
class GithubMeSponsorable with EquatableMixin {
GithubMeSponsorable();
factory GithubMeSponsorable.fromJson(Map<String, dynamic> json) =>
_$GithubMeSponsorableFromJson(json);
@JsonKey(name: '__typename')
String resolveType;
@override
List<Object> get props => [resolveType];
Map<String, dynamic> toJson() => _$GithubMeSponsorableToJson(this);
}
class GithubMeQuery extends GraphQLQuery<GithubMe, JsonSerializable> {
GithubMeQuery();
@override
final DocumentNode document = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.query,
name: null,
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'viewer'),
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: '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: '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_me';
@override
List<Object> get props => [document, operationName];
@override
GithubMe parse(Map<String, dynamic> json) => GithubMe.fromJson(json);
}