JSON to Dart Model Classes
This tool converts JSON to Dart model classes. It is useful for converting JSON responses from REST APIs to Dart model classes.
Changelog
02/01/2023:
- Singular class names
- Temporarily removed copyWith method
- Strip underscores at the start of field names
26/11/2022:
- Option to change the Root class name
- Add imports of dependent classes
- Group objects with similar fields into a single class
Generated dart model classes are specifically compatible with json_serializable & json_annotation packages.
Note: After generating the classes, run flutter pub run build_runner build to generate the .g.dart files.