I'm new to dart development...
I can't figure out how to use the Json_serializable package with enum types. my database has the enum values as an integer, but it looks like JSON_Serializable wants the value to be a string representation of the enum name.. IE:
enum Classification { None, Open, Inactive, Closed, Default, Delete, ZeroRecord }
database has Classification as an integer value (4: which is Default)
when loading from JSON I get an exception
EXCEPTION: Invalid argument(s): 4
is not one of the supported values: None, Open, Inactive, Closed, Default, Delete, ZeroRecord
How do I force JSON_Serializable to treat 4 as "Default"?