Skip to content

[Feature Request] Custom fromJson for JsonEnum #1036

Open
@farukprogrammer

Description

@farukprogrammer

I want to track when unknownValue occurs when parsing fromJson for enum type, so that I can fix the model or tell the BE if something unexpected happen.

In order to do that, I guess we need to be able to inject custom deserialization method, not just mapping. Just like fromJson and toJson in JsonKey.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions