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
I was interested in this package until I discovered that the use of JsonConverter classes/annotations on custom fields does not work. JsonSerializable requires specifying converters for fields that have types that are not built into json_serializable. For example, using a type like UuidValue in a field, I'd like to convert it to/from String.
I can do this with freezed, but freezed also does not allow specifying this globally for types or on classes (one has to add the converter to every field). Would give your package an advantage to be able to specify custom converters at the class level and also in build.yaml (which neither freezed nor json_serializable offers).
Hi @tgrushka, many thanks for trying out the package. You are right this would be beneficial. I'll take a look at this sometime this week and update it. I only recently added the json package and functionality (it is the main reason why I sat on the package for so long) so that part is the area where functionality is likely missing. I think this should be fairly straight forward though.
I was interested in this package until I discovered that the use of JsonConverter classes/annotations on custom fields does not work. JsonSerializable requires specifying converters for fields that have types that are not built into json_serializable. For example, using a type like UuidValue in a field, I'd like to convert it to/from String.
I can do this with freezed, but freezed also does not allow specifying this globally for types or on classes (one has to add the converter to every field). Would give your package an advantage to be able to specify custom converters at the class level and also in build.yaml (which neither freezed nor json_serializable offers).
Example:
or build.yaml:
The text was updated successfully, but these errors were encountered: