Skip to content

Commit e6a624c

Browse files
committed
merge clean
2 parents 28ee06a + ab62489 commit e6a624c

File tree

7 files changed

+19
-503
lines changed

7 files changed

+19
-503
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"dataconnect": {
3-
"source": "dataconnect"
4-
}
2+
"dataconnect": {
3+
"source": "dataconnect"
4+
}
55
}
Original file line numberDiff line numberDiff line change
@@ -1,132 +1 @@
1-
part of movies;
21

3-
class AddDirectorToMovie {
4-
String name = "addDirectorToMovie";
5-
AddDirectorToMovie({required this.dataConnect});
6-
7-
Deserializer<AddDirectorToMovieResponse> dataDeserializer = (String json) =>
8-
AddDirectorToMovieResponse.fromJson(
9-
jsonDecode(json) as Map<String, dynamic>);
10-
Serializer<AddDirectorToMovieVariables> varsSerializer =
11-
(AddDirectorToMovieVariables vars) => jsonEncode(vars.toJson());
12-
MutationRef<AddDirectorToMovieResponse, AddDirectorToMovieVariables> ref(
13-
{AddDirectorToMovieVariablesPersonId? personId,
14-
String? movieId,
15-
AddDirectorToMovieVariables? addDirectorToMovieVariables}) {
16-
AddDirectorToMovieVariables vars1 = AddDirectorToMovieVariables(
17-
personId: personId,
18-
movieId: movieId,
19-
);
20-
AddDirectorToMovieVariables vars = addDirectorToMovieVariables ?? vars1;
21-
return dataConnect.mutation(
22-
this.name, dataDeserializer, varsSerializer, vars);
23-
}
24-
25-
FirebaseDataConnect dataConnect;
26-
}
27-
28-
class AddDirectorToMovieDirectedByInsert {
29-
late String directedbyId;
30-
31-
late String movieId;
32-
33-
AddDirectorToMovieDirectedByInsert.fromJson(Map<String, dynamic> json)
34-
: directedbyId = json['directedbyId'],
35-
movieId = json['movieId'] {}
36-
37-
// TODO(mtewani): Fix up to create a map on the fly
38-
Map<String, dynamic> toJson() {
39-
Map<String, dynamic> json = {};
40-
41-
json['directedbyId'] = directedbyId;
42-
43-
json['movieId'] = movieId;
44-
45-
return json;
46-
}
47-
48-
AddDirectorToMovieDirectedByInsert({
49-
required this.directedbyId,
50-
required this.movieId,
51-
}) {
52-
// TODO(mtewani): Only show this if there are optional fields.
53-
}
54-
}
55-
56-
class AddDirectorToMovieResponse {
57-
late AddDirectorToMovieDirectedByInsert directedBy_insert;
58-
59-
AddDirectorToMovieResponse.fromJson(Map<String, dynamic> json)
60-
: directedBy_insert = AddDirectorToMovieDirectedByInsert.fromJson(
61-
json['directedBy_insert']) {}
62-
63-
// TODO(mtewani): Fix up to create a map on the fly
64-
Map<String, dynamic> toJson() {
65-
Map<String, dynamic> json = {};
66-
67-
json['directedBy_insert'] = directedBy_insert.toJson();
68-
69-
return json;
70-
}
71-
72-
AddDirectorToMovieResponse({
73-
required this.directedBy_insert,
74-
}) {
75-
// TODO(mtewani): Only show this if there are optional fields.
76-
}
77-
}
78-
79-
class AddDirectorToMovieVariablesPersonId {
80-
late String id;
81-
82-
AddDirectorToMovieVariablesPersonId.fromJson(Map<String, dynamic> json)
83-
: id = json['id'] {}
84-
85-
// TODO(mtewani): Fix up to create a map on the fly
86-
Map<String, dynamic> toJson() {
87-
Map<String, dynamic> json = {};
88-
89-
json['id'] = id;
90-
91-
return json;
92-
}
93-
94-
AddDirectorToMovieVariablesPersonId({
95-
required this.id,
96-
}) {
97-
// TODO(mtewani): Only show this if there are optional fields.
98-
}
99-
}
100-
101-
class AddDirectorToMovieVariables {
102-
late AddDirectorToMovieVariablesPersonId? personId;
103-
104-
late String? movieId;
105-
106-
AddDirectorToMovieVariables.fromJson(Map<String, dynamic> json)
107-
: personId =
108-
AddDirectorToMovieVariablesPersonId.fromJson(json['personId']),
109-
movieId = json['movieId'] {}
110-
111-
// TODO(mtewani): Fix up to create a map on the fly
112-
Map<String, dynamic> toJson() {
113-
Map<String, dynamic> json = {};
114-
115-
if (personId != null) {
116-
json['personId'] = personId!.toJson();
117-
}
118-
119-
if (movieId != null) {
120-
json['movieId'] = movieId;
121-
}
122-
123-
return json;
124-
}
125-
126-
AddDirectorToMovieVariables({
127-
AddDirectorToMovieVariablesPersonId? personId,
128-
String? movieId,
129-
}) {
130-
// TODO(mtewani): Only show this if there are optional fields.
131-
}
132-
}
Original file line numberDiff line numberDiff line change
@@ -1,89 +0,0 @@
1-
part of movies;
2-
3-
class AddPerson {
4-
String name = "addPerson";
5-
AddPerson({required this.dataConnect});
6-
7-
Deserializer<AddPersonResponse> dataDeserializer = (String json) =>
8-
AddPersonResponse.fromJson(jsonDecode(json) as Map<String, dynamic>);
9-
Serializer<AddPersonVariables> varsSerializer =
10-
(AddPersonVariables vars) => jsonEncode(vars.toJson());
11-
MutationRef<AddPersonResponse, AddPersonVariables> ref(
12-
{String? name, AddPersonVariables? addPersonVariables}) {
13-
AddPersonVariables vars1 = AddPersonVariables(
14-
name: name,
15-
);
16-
AddPersonVariables vars = addPersonVariables ?? vars1;
17-
return dataConnect.mutation(
18-
this.name, dataDeserializer, varsSerializer, vars);
19-
}
20-
21-
FirebaseDataConnect dataConnect;
22-
}
23-
24-
class AddPersonPersonInsert {
25-
late String id;
26-
27-
AddPersonPersonInsert.fromJson(Map<String, dynamic> json) : id = json['id'] {}
28-
29-
// TODO(mtewani): Fix up to create a map on the fly
30-
Map<String, dynamic> toJson() {
31-
Map<String, dynamic> json = {};
32-
33-
json['id'] = id;
34-
35-
return json;
36-
}
37-
38-
AddPersonPersonInsert({
39-
required this.id,
40-
}) {
41-
// TODO(mtewani): Only show this if there are optional fields.
42-
}
43-
}
44-
45-
class AddPersonResponse {
46-
late AddPersonPersonInsert person_insert;
47-
48-
AddPersonResponse.fromJson(Map<String, dynamic> json)
49-
: person_insert = AddPersonPersonInsert.fromJson(json['person_insert']) {}
50-
51-
// TODO(mtewani): Fix up to create a map on the fly
52-
Map<String, dynamic> toJson() {
53-
Map<String, dynamic> json = {};
54-
55-
json['person_insert'] = person_insert.toJson();
56-
57-
return json;
58-
}
59-
60-
AddPersonResponse({
61-
required this.person_insert,
62-
}) {
63-
// TODO(mtewani): Only show this if there are optional fields.
64-
}
65-
}
66-
67-
class AddPersonVariables {
68-
late String? name;
69-
70-
AddPersonVariables.fromJson(Map<String, dynamic> json)
71-
: name = json['name'] {}
72-
73-
// TODO(mtewani): Fix up to create a map on the fly
74-
Map<String, dynamic> toJson() {
75-
Map<String, dynamic> json = {};
76-
77-
if (name != null) {
78-
json['name'] = name;
79-
}
80-
81-
return json;
82-
}
83-
84-
AddPersonVariables({
85-
String? name,
86-
}) {
87-
// TODO(mtewani): Only show this if there are optional fields.
88-
}
89-
}
Original file line numberDiff line numberDiff line change
@@ -1,125 +0,0 @@
1-
part of movies;
2-
3-
class CreateMovie {
4-
String name = "createMovie";
5-
CreateMovie({required this.dataConnect});
6-
7-
Deserializer<CreateMovieResponse> dataDeserializer = (String json) =>
8-
CreateMovieResponse.fromJson(jsonDecode(json) as Map<String, dynamic>);
9-
Serializer<CreateMovieVariables> varsSerializer =
10-
(CreateMovieVariables vars) => jsonEncode(vars.toJson());
11-
MutationRef<CreateMovieResponse, CreateMovieVariables> ref(
12-
{required String title,
13-
required int releaseYear,
14-
required String genre,
15-
double? rating,
16-
String? description,
17-
CreateMovieVariables? createMovieVariables}) {
18-
CreateMovieVariables vars1 = CreateMovieVariables(
19-
title: title,
20-
releaseYear: releaseYear,
21-
genre: genre,
22-
rating: rating,
23-
description: description,
24-
);
25-
CreateMovieVariables vars = createMovieVariables ?? vars1;
26-
return dataConnect.mutation(
27-
this.name, dataDeserializer, varsSerializer, vars);
28-
}
29-
30-
FirebaseDataConnect dataConnect;
31-
}
32-
33-
class CreateMovieMovieInsert {
34-
late String id;
35-
36-
CreateMovieMovieInsert.fromJson(Map<String, dynamic> json)
37-
: id = json['id'] {}
38-
39-
// TODO(mtewani): Fix up to create a map on the fly
40-
Map<String, dynamic> toJson() {
41-
Map<String, dynamic> json = {};
42-
43-
json['id'] = id;
44-
45-
return json;
46-
}
47-
48-
CreateMovieMovieInsert({
49-
required this.id,
50-
}) {
51-
// TODO(mtewani): Only show this if there are optional fields.
52-
}
53-
}
54-
55-
class CreateMovieResponse {
56-
late CreateMovieMovieInsert movie_insert;
57-
58-
CreateMovieResponse.fromJson(Map<String, dynamic> json)
59-
: movie_insert = CreateMovieMovieInsert.fromJson(json['movie_insert']) {}
60-
61-
// TODO(mtewani): Fix up to create a map on the fly
62-
Map<String, dynamic> toJson() {
63-
Map<String, dynamic> json = {};
64-
65-
json['movie_insert'] = movie_insert.toJson();
66-
67-
return json;
68-
}
69-
70-
CreateMovieResponse({
71-
required this.movie_insert,
72-
}) {
73-
// TODO(mtewani): Only show this if there are optional fields.
74-
}
75-
}
76-
77-
class CreateMovieVariables {
78-
late String title;
79-
80-
late int releaseYear;
81-
82-
late String genre;
83-
84-
late double? rating;
85-
86-
late String? description;
87-
88-
CreateMovieVariables.fromJson(Map<String, dynamic> json)
89-
: title = json['title'],
90-
releaseYear = json['releaseYear'],
91-
genre = json['genre'],
92-
rating = json['rating'],
93-
description = json['description'] {}
94-
95-
// TODO(mtewani): Fix up to create a map on the fly
96-
Map<String, dynamic> toJson() {
97-
Map<String, dynamic> json = {};
98-
99-
json['title'] = title;
100-
101-
json['releaseYear'] = releaseYear;
102-
103-
json['genre'] = genre;
104-
105-
if (rating != null) {
106-
json['rating'] = rating;
107-
}
108-
109-
if (description != null) {
110-
json['description'] = description;
111-
}
112-
113-
return json;
114-
}
115-
116-
CreateMovieVariables({
117-
required this.title,
118-
required this.releaseYear,
119-
required this.genre,
120-
double? rating,
121-
String? description,
122-
}) {
123-
// TODO(mtewani): Only show this if there are optional fields.
124-
}
125-
}

0 commit comments

Comments
 (0)