We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Like JsonSerializable, we can define many converters using the argument converters.
converters
@JsonSerializable(converters: [DateTimeConverter(), IntConverter()])
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.
The text was updated successfully, but these errors were encountered:
I noticed that define a @JsonSerializable above the factory constructor in a Freezed class can solve this problem.
@JsonSerializable
class Test with _$Test { @JsonSerializable(converters: [DateTimeConverter(), IntConverter()]) const factory Test( { int? id, }); }
Sorry, something went wrong.
rrousselGit
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: