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.
I want to track when
unknownValueoccurs 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
fromJsonandtoJsoninJsonKey.