This repository was archived by the owner on Oct 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathsimple_query.graphql.dart
More file actions
93 lines (75 loc) · 2.61 KB
/
simple_query.graphql.dart
File metadata and controls
93 lines (75 loc) · 2.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// GENERATED CODE - DO NOT MODIFY BY HAND
// @dart = 2.12
import 'package:artemis/artemis.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart';
import 'package:gql/ast.dart';
part 'simple_query.graphql.g.dart';
@JsonSerializable(explicitToJson: true)
class SimpleQuery$Query$Pokemon extends JsonSerializable with EquatableMixin {
SimpleQuery$Query$Pokemon();
factory SimpleQuery$Query$Pokemon.fromJson(Map<String, dynamic> json) =>
_$SimpleQuery$Query$PokemonFromJson(json);
String? number;
List<String?>? types;
@override
List<Object?> get props => [number, types];
@override
Map<String, dynamic> toJson() => _$SimpleQuery$Query$PokemonToJson(this);
}
@JsonSerializable(explicitToJson: true)
class SimpleQuery$Query extends JsonSerializable with EquatableMixin {
SimpleQuery$Query();
factory SimpleQuery$Query.fromJson(Map<String, dynamic> json) =>
_$SimpleQuery$QueryFromJson(json);
SimpleQuery$Query$Pokemon? pokemon;
@override
List<Object?> get props => [pokemon];
@override
Map<String, dynamic> toJson() => _$SimpleQuery$QueryToJson(this);
}
final SIMPLE_QUERY_QUERY_DOCUMENT = DocumentNode(definitions: [
OperationDefinitionNode(
type: OperationType.query,
name: NameNode(value: 'simple_query'),
variableDefinitions: [],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'pokemon'),
alias: null,
arguments: [
ArgumentNode(
name: NameNode(value: 'name'),
value: StringValueNode(value: 'Charmander', isBlock: false))
],
directives: [],
selectionSet: SelectionSetNode(selections: [
FieldNode(
name: NameNode(value: 'number'),
alias: null,
arguments: [],
directives: [],
selectionSet: null),
FieldNode(
name: NameNode(value: 'types'),
alias: null,
arguments: [],
directives: [],
selectionSet: null)
]))
]))
]);
class SimpleQueryQuery
extends GraphQLQuery<SimpleQuery$Query, JsonSerializable> {
SimpleQueryQuery();
@override
final DocumentNode document = SIMPLE_QUERY_QUERY_DOCUMENT;
@override
final String operationName = 'simple_query';
@override
List<Object?> get props => [document, operationName];
@override
SimpleQuery$Query parse(Map<String, dynamic> json) =>
SimpleQuery$Query.fromJson(json);
}