model_from_json 1.0.2
model_from_json: ^1.0.2 copied to clipboard
A Dart CLI tool that generates Equatable-ready Dart model classes directly from JSON files, with support for nested objects, lists, and automatic fromJson/toJson methods.
import 'package:model_from_json/model_from_json.dart';
void main() {
/// ✅ Minimal demonstration of the generator API
runGenerator(
jsonPath: 'example/api-res.json',
rootClassName: 'ApiResponse',
outputDir: 'example/output',
);
}