Hi,Welcome to come to see me! What I do is generate dart beans based on json, as well as generics parameters and json build instances
- Search 'Flutter GetX Starter' in Intellij Idea Plugin Repositroy Or AndroidStudio Plugin Repository And Install it.
- Restart your Develop tools
- Press shortcut key
alt
+j
for mac , right click on package ->New
->Flutter GetX Starter
And Then you will know how to use - If you change the fields in the class, just press the shortcut alt + j to regenerate the tojson and fromjson methods. The generated method regenerates all helper classes and JsonConvert classes (the same as the shortcut alt + j) each time an entity file is created in the generated/json directory.
- If you need generic conversions in your network requests, use the jsonconvert.fromjsonast method directly.
- If you don't want to use the FlutterJsonBeanFactory in your project, you can add flutter-json: enable: false to the pubspec.yaml file
- If no helper files are generated, you can delete the .idea directory and restart your idea
- Welcome anyone to raise new issue.
- Welcome anyone to push a pull request to improve me.
- Thank @jonataslaw
- Thank @CNAD666
- Thank @zhangruiyu
- Thank @AndrewShen812
- Support me by clicking the ⭐ button on the upper right of this page. ✌️
- Spread to others to let more people have a better develope expierience ❤️