@@ -2,14 +2,12 @@ part of movies_connector;
2
2
3
3
class UpsertUserVariablesBuilder {
4
4
String username;
5
- String name;
6
5
7
6
FirebaseDataConnect _dataConnect;
8
7
9
8
UpsertUserVariablesBuilder (
10
9
this ._dataConnect, {
11
10
required String this .username,
12
- required String this .name,
13
11
});
14
12
Deserializer <UpsertUserData > dataDeserializer =
15
13
(dynamic json) => UpsertUserData .fromJson (jsonDecode (json));
@@ -22,7 +20,6 @@ class UpsertUserVariablesBuilder {
22
20
MutationRef <UpsertUserData , UpsertUserVariables > ref () {
23
21
UpsertUserVariables vars = UpsertUserVariables (
24
22
username: username,
25
- name: name,
26
23
);
27
24
28
25
return _dataConnect.mutation (
@@ -71,26 +68,20 @@ class UpsertUserData {
71
68
class UpsertUserVariables {
72
69
String username;
73
70
74
- String name;
75
-
76
71
@Deprecated (
77
72
'fromJson is deprecated for Variable classes as they are no longer required for deserialization.' )
78
73
UpsertUserVariables .fromJson (Map <String , dynamic > json)
79
- : username = nativeFromJson <String >(json['username' ]),
80
- name = nativeFromJson <String >(json['name' ]) {}
74
+ : username = nativeFromJson <String >(json['username' ]) {}
81
75
82
76
Map <String , dynamic > toJson () {
83
77
Map <String , dynamic > json = {};
84
78
85
79
json['username' ] = nativeToJson <String >(username);
86
80
87
- json['name' ] = nativeToJson <String >(name);
88
-
89
81
return json;
90
82
}
91
83
92
84
UpsertUserVariables ({
93
85
required this .username,
94
- required this .name,
95
86
});
96
87
}
0 commit comments