FlutterJsonBeanFactory icon indicating copy to clipboard operation
FlutterJsonBeanFactory copied to clipboard

What I do is generate dart beans based on json, as well as generics parameters and json build instances

Results 13 FlutterJsonBeanFactory issues
Sort by recently updated
recently updated
newest added

1. 生成文件原本空格和tab混用统一改为空格,样式小调整更接近` dart format`格式化结果。 2. 在 #114 基础上添加`pubspec.yaml`兼容配置`json_serializable_compat`为`true`才启用`json_serializable`兼容模式,没配置默认不启用。

目前生成的实体,只有fromJson和toJson,无法自行实例化,也无法快速拷贝,希望能增加这类方法。

生成后,希望在实体内把属性定义为枚举,但是自动生成后,会被当成类处理。

生成的文件里,有的地方用的空格,有的地方用的Tab。导致每次重新生成,都会有好多git改动。希望可以统一一下。如果能弄成可配置的就更好了的O(∩_∩)O

I couldn't find this plugin for vscode. Hope it's in development.

比如 如下的json ``` { "list": [ { "mickey": { "a1": 1 } }, { "tom": { "b1": 1 } }, { "lily": { "c1": 1 } }, { "cat": {...

### Version 5.1.5 ### Platforms dart ### Device Model redmi note9 ### flutter info ```sh [!] Flutter (Channel [user-branch], 3.19.0, on macOS 13.5 22G74 darwin-x64, locale zh-Hans-CN) ! Flutter version...

### Version 5.1.3 ### Platforms Android ### Device Model android ### flutter info ```sh 和flutter无关 ``` ### How to reproduce? 在android项目中导入flutter_module,做成混合模式,调用插件时会提示This is not the flutter project. 需要使用IDE单独打开flutter_module,才能正常调用插件。 ### Logs _No...

### Platforms dart ### Description 当模型中的属性定义为枚举时,byName方法的限制,json 中的数据是否只能是 string,而不能是 int。有没有其他的示例或思路。谢谢。 ![3](https://github.com/fluttercandies/FlutterJsonBeanFactory/assets/17917564/ec884b9a-2ab1-4f97-a098-cb93633655b4) ### My code ![2](https://github.com/fluttercandies/FlutterJsonBeanFactory/assets/17917564/a8bc2e48-06e0-44fa-a912-2536e4143edf) ![1](https://github.com/fluttercandies/FlutterJsonBeanFactory/assets/17917564/cf007137-cb7d-4354-8c0a-1c69ef271210) ### Try do it _No response_