json2model

English | 简体中文
This library generates a model object corresponding to a JSON string by executing commands in code https://pub.dev/packages/json2model
Usage
A simple usage example:
import 'package:json2model/json2model.dart';
void main() {
run(['--src=example/json', '--dst=example/lib/models']);
}
Feature
| Feature | Status |
|---|---|
| null safety | ✅ |
| toJson & fromJson | ✅ |
| encoder & decoder | ✅ |
| all properties final | ✅ |
| all properties optional | ✅ |
Bugs
Please file feature requests and bugs at the issue tracker.
About
License
Libraries
- json2model
- Generates Dart model classes, with
fromJsonandtoJson, from JSON files.