File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ class Request extends Equatable {
1111 });
1212
1313 /// Generate an instance from JSON.
14- factory Request .fromJson (
15- {bool acceptNullValue = false , required Map <String , dynamic > json}) =>
16- Request (
17- acceptNullValue: acceptNullValue,
14+ factory Request .fromJson (Map <String , dynamic > json) => Request (
1815 passthrough: json['passthrough' ] as Map <String , dynamic >? ,
1916 reqId: json['req_id' ] as int ? ,
2017 );
@@ -42,10 +39,12 @@ class Request extends Equatable {
4239 Request copyWith ({
4340 Map <String , dynamic >? passthrough,
4441 int ? reqId,
42+ bool ? acceptNullValue,
4543 }) =>
4644 Request (
4745 passthrough: passthrough ?? this .passthrough,
4846 reqId: reqId ?? this .reqId,
47+ acceptNullValue: acceptNullValue ?? false ,
4948 );
5049
5150 /// Override equatable class.
You can’t perform that action at this time.
0 commit comments