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