model_from_json 1.0.2 copy "model_from_json: ^1.0.2" to clipboard
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.

example/example.dart

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',
  );
}
1
likes
160
points
165
downloads

Publisher

unverified uploader

Weekly Downloads

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.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable

More

Packages that depend on model_from_json