Open haodong404 opened 2 months ago
I noticed that define a @JsonSerializable
above the factory constructor in a Freezed class can solve this problem.
class Test with _$Test {
@JsonSerializable(converters: [DateTimeConverter(), IntConverter()])
const factory Test( {
int? id,
});
}
Like JsonSerializable, we can define many converters using the argument
converters
.But Freezed does not have the same argument. So, I'm wondering if there's a convenient way to set up a lot of converters.