@@ -2,14 +2,12 @@ part of movies_connector;
22
33class UpsertUserVariablesBuilder {
44 String username;
5- String name;
65
76 FirebaseDataConnect _dataConnect;
87
98 UpsertUserVariablesBuilder (
109 this ._dataConnect, {
1110 required String this .username,
12- required String this .name,
1311 });
1412 Deserializer <UpsertUserData > dataDeserializer =
1513 (dynamic json) => UpsertUserData .fromJson (jsonDecode (json));
@@ -22,7 +20,6 @@ class UpsertUserVariablesBuilder {
2220 MutationRef <UpsertUserData , UpsertUserVariables > ref () {
2321 UpsertUserVariables vars = UpsertUserVariables (
2422 username: username,
25- name: name,
2623 );
2724
2825 return _dataConnect.mutation (
@@ -71,26 +68,20 @@ class UpsertUserData {
7168class UpsertUserVariables {
7269 String username;
7370
74- String name;
75-
7671 @Deprecated (
7772 'fromJson is deprecated for Variable classes as they are no longer required for deserialization.' )
7873 UpsertUserVariables .fromJson (Map <String , dynamic > json)
79- : username = nativeFromJson <String >(json['username' ]),
80- name = nativeFromJson <String >(json['name' ]) {}
74+ : username = nativeFromJson <String >(json['username' ]) {}
8175
8276 Map <String , dynamic > toJson () {
8377 Map <String , dynamic > json = {};
8478
8579 json['username' ] = nativeToJson <String >(username);
8680
87- json['name' ] = nativeToJson <String >(name);
88-
8981 return json;
9082 }
9183
9284 UpsertUserVariables ({
9385 required this .username,
94- required this .name,
9586 });
9687}
0 commit comments