Here is an example to serialize string value to enum using the json_serializable library in Dart. All you have to do is to add the annotation @JsonValue ...
確定! 回上一頁