You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then just always use @MyJsonSerializable instead of @JsonSerializable
This is all right, but it would be even better if it was just like the in-built types like DateTime : you have nothing to specify.
So for custom class on a project, you would just have to specify converter once globally, and nowhere else. That would be very handy !
How can I set a converter globally to replace the builtin datetime for example?
this does not appear in the documentation
https://pub.dev/packages/json_serializable
replace the datetime converter with a custom one globally for all classes
The text was updated successfully, but these errors were encountered: