TF-4169 Set createToJson is false to avoid create toJson unnecessary
This commit is contained in:
@@ -12,6 +12,7 @@ part 'changes_label_response.g.dart';
|
||||
AccountIdConverter(),
|
||||
IdConverter(),
|
||||
],
|
||||
createToJson: false,
|
||||
)
|
||||
class ChangesLabelResponse extends ChangesResponse {
|
||||
ChangesLabelResponse(
|
||||
|
||||
@@ -13,6 +13,7 @@ part 'get_label_response.g.dart';
|
||||
AccountIdConverter(),
|
||||
IdConverter(),
|
||||
],
|
||||
createToJson: false,
|
||||
)
|
||||
class GetLabelResponse extends GetResponse<Label> {
|
||||
GetLabelResponse(super.accountId, super.state, super.list, super.notFound);
|
||||
@@ -24,8 +25,6 @@ class GetLabelResponse extends GetResponse<Label> {
|
||||
return GetLabelResponse.fromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$GetLabelResponseToJson(this);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [accountId, state, list, notFound];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user