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:
Date: 02/01/2023
- Singular class names
- Temporarily removed copywith method
- Strip underscores at the start of field names
Date: 26/11/2022
- Option to change the Root class name
- Add imports of dependent classes not just Class names in the fields
- If multiple fields hold objects with similar fields, ask if they should be grouped into a single class
Generated dart model classes are specifically compatible with json_serializable & json_annotation packages.
Dart Classes
{{pascalCase(dartClass.className)}}
{{dartClass.classCode}}