json_model_gen 0.0.7 copy "json_model_gen: ^0.0.7" to clipboard
json_model_gen: ^0.0.7 copied to clipboard

A Dart tool to generate model classes from JSON with fromJson, toJson, copyWith, and equality overrides.

0.0.1 #

  • Initial release: generate Dart model from JSON

0.0.2 #

  • format code

0.0.3 #

  • documentation commands

0.0.4 #

  • formatted

0.0.5 #

  • Added support for both CLI flags and interactive prompts.
  • Supports generation of Dart models with:
    • equatable integration
    • freezed integration
    • nullable fields option
  • Automatic renaming of output .json files to .dart.
  • Class name validation enforcing PascalCase.
  • Detects and confirms before overwriting existing output files.

πŸ›  Enhancements #

  • Improved error handling for:
    • Missing input file
    • Invalid JSON content
  • Clear warnings for .dart inputs that contain raw JSON.
  • Added file-level and function-level documentation comments.

0.0.6 #

  • πŸ“– Added a clean and beginner-friendly README.md
  • πŸ›  Included installation instructions using dart pub add
  • πŸ§ͺ Mentioned post-install steps for freezed support
  • 🧰 Improved package documentation for easier onboarding

0.0.7 #

  • Enhance README.md with improved structure and clarity
4
likes
150
points
44
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart tool to generate model classes from JSON with fromJson, toJson, copyWith, and equality overrides.

Repository (GitHub)

Topics

#json #model #codegen #dart #cli

Documentation

API reference

License

MIT (license)

Dependencies

args, recase

More

Packages that depend on json_model_gen