TF-4169 Set createToJson is false to avoid create toJson unnecessary

This commit is contained in:
dab246
2025-11-24 12:51:23 +07:00
committed by Dat H. Pham
parent fae12ced76
commit 4986c64802
2 changed files with 2 additions and 2 deletions
@@ -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];
} }