json_model
json_model copied to clipboard
Generate model class from Json file. 一行命令,通过Json文件生成Dart Model类。
作者您好,请问如果我想生成的model 含有 enum类型 我该如何做呢? 比如对于用户类而言,我需要有一个角色属性,而它采用的是enum类型,那么我还能使用json_model进行转换吗?
不想把对象拆开啊,确实有点麻烦
仓库地址 [https://github.com/wilinz/json5_model](https://github.com/wilinz/json5_model)
[json2model](https://pub.dev/packages/json2model)
I can't use function toJson() when JSON have object or list. because lib don't map another models on function