@@ -3,190 +3,93 @@ part of movies_connector;
33class AddFavoritedMovieVariablesBuilder {
44 String movieId;
55
6-
76 FirebaseDataConnect _dataConnect;
8-
9- AddFavoritedMovieVariablesBuilder (this ._dataConnect, {required String this .movieId,});
10- Deserializer <AddFavoritedMovieData > dataDeserializer = (dynamic json) => AddFavoritedMovieData .fromJson (jsonDecode (json));
11- Serializer <AddFavoritedMovieVariables > varsSerializer = (AddFavoritedMovieVariables vars) => jsonEncode (vars.toJson ());
12- Future <OperationResult <AddFavoritedMovieData , AddFavoritedMovieVariables >> execute () {
7+
8+ AddFavoritedMovieVariablesBuilder (
9+ this ._dataConnect, {
10+ required String this .movieId,
11+ });
12+ Deserializer <AddFavoritedMovieData > dataDeserializer =
13+ (dynamic json) => AddFavoritedMovieData .fromJson (jsonDecode (json));
14+ Serializer <AddFavoritedMovieVariables > varsSerializer =
15+ (AddFavoritedMovieVariables vars) => jsonEncode (vars.toJson ());
16+ Future <OperationResult <AddFavoritedMovieData , AddFavoritedMovieVariables >>
17+ execute () {
1318 return this .ref ().execute ();
1419 }
20+
1521 MutationRef <AddFavoritedMovieData , AddFavoritedMovieVariables > ref () {
16- AddFavoritedMovieVariables vars= AddFavoritedMovieVariables (movieId: movieId,);
22+ AddFavoritedMovieVariables vars = AddFavoritedMovieVariables (
23+ movieId: movieId,
24+ );
1725
18- return _dataConnect.mutation ("AddFavoritedMovie" , dataDeserializer, varsSerializer, vars);
26+ return _dataConnect.mutation (
27+ "AddFavoritedMovie" , dataDeserializer, varsSerializer, vars);
1928 }
2029}
2130
31+ class AddFavoritedMovieFavoriteMovieUpsert {
32+ String userId;
2233
23- class AddFavoritedMovieFavoriteMovieUpsert {
24-
25- String userId;
26-
27-
28- String movieId;
29-
30-
31-
32-
33-
34-
35- AddFavoritedMovieFavoriteMovieUpsert .fromJson (dynamic json):
36- userId =
37-
38- nativeFromJson <String >(json['userId' ])
39-
40-
41-
42- ,
43-
44- movieId =
45-
46- nativeFromJson <String >(json['movieId' ])
47-
48-
49-
50-
51- {
52-
53-
54-
55-
56-
57- }
34+ String movieId;
5835
36+ AddFavoritedMovieFavoriteMovieUpsert .fromJson (dynamic json)
37+ : userId = nativeFromJson <String >(json['userId' ]),
38+ movieId = nativeFromJson <String >(json['movieId' ]) {}
5939
6040 Map <String , dynamic > toJson () {
6141 Map <String , dynamic > json = {};
62-
63-
64- json['userId' ] =
65-
66- nativeToJson <String >(userId)
67-
68- ;
69-
70-
71-
72- json['movieId' ] =
73-
74- nativeToJson <String >(movieId)
75-
76- ;
77-
78-
42+
43+ json['userId' ] = nativeToJson <String >(userId);
44+
45+ json['movieId' ] = nativeToJson <String >(movieId);
46+
7947 return json;
8048 }
8149
8250 AddFavoritedMovieFavoriteMovieUpsert ({
83-
84- required this .userId,
85-
86- required this .movieId,
87-
51+ required this .userId,
52+ required this .movieId,
8853 });
8954}
9055
56+ class AddFavoritedMovieData {
57+ AddFavoritedMovieFavoriteMovieUpsert favorite_movie_upsert;
9158
92-
93- class AddFavoritedMovieData {
94-
95- AddFavoritedMovieFavoriteMovieUpsert favorite_movie_upsert;
96-
97-
98-
99-
100-
101-
102- AddFavoritedMovieData .fromJson (dynamic json):
103- favorite_movie_upsert =
104-
105- AddFavoritedMovieFavoriteMovieUpsert .fromJson (json['favorite_movie_upsert' ])
106-
107-
108-
109-
110- {
111-
112-
113-
114- }
115-
59+ AddFavoritedMovieData .fromJson (dynamic json)
60+ : favorite_movie_upsert = AddFavoritedMovieFavoriteMovieUpsert .fromJson (
61+ json['favorite_movie_upsert' ]) {}
11662
11763 Map <String , dynamic > toJson () {
11864 Map <String , dynamic > json = {};
119-
120-
121- json['favorite_movie_upsert' ] =
122-
123- favorite_movie_upsert.toJson ()
124-
125- ;
126-
127-
65+
66+ json['favorite_movie_upsert' ] = favorite_movie_upsert.toJson ();
67+
12868 return json;
12969 }
13070
13171 AddFavoritedMovieData ({
132-
133- required this .favorite_movie_upsert,
134-
72+ required this .favorite_movie_upsert,
13573 });
13674}
13775
76+ class AddFavoritedMovieVariables {
77+ String movieId;
13878
139-
140- class AddFavoritedMovieVariables {
141-
142- String movieId;
143-
144-
145-
146-
147-
148- @Deprecated ('fromJson is deprecated for Variable classes as they are no longer required for deserialization.' )
149-
150-
151- AddFavoritedMovieVariables .fromJson (Map <String , dynamic > json):
152- movieId =
153-
154- nativeFromJson <String >(json['movieId' ])
155-
156-
157-
158-
159- {
160-
161-
162-
163- }
164-
79+ @Deprecated (
80+ 'fromJson is deprecated for Variable classes as they are no longer required for deserialization.' )
81+ AddFavoritedMovieVariables .fromJson (Map <String , dynamic > json)
82+ : movieId = nativeFromJson <String >(json['movieId' ]) {}
16583
16684 Map <String , dynamic > toJson () {
16785 Map <String , dynamic > json = {};
168-
169-
170- json['movieId' ] =
171-
172- nativeToJson <String >(movieId)
173-
174- ;
175-
176-
86+
87+ json['movieId' ] = nativeToJson <String >(movieId);
88+
17789 return json;
17890 }
17991
18092 AddFavoritedMovieVariables ({
181-
182- required this .movieId,
183-
93+ required this .movieId,
18494 });
18595}
186-
187-
188-
189-
190-
191-
192-
0 commit comments