json_model_mapper 0.0.1 copy "json_model_mapper: ^0.0.1" to clipboard
json_model_mapper: ^0.0.1 copied to clipboard

A simple annotation package used to mark model classes for code generation. Designed to work with the `json_model_mapper_gen` generator package to create immutable data models automatically.

0.0.1 #

  • 🎉 Initial release of json_model_mapper.
  • Add @JsonModelMapper() annotation to mark Dart classes for model generation.
  • Generate full model files like user_model.dart without .g.dart and part usage.
  • Support smart naming convention:
    • user.dartuser_model.dart
  • Add support for nullable types and primitive types.
  • Add support for basic custom class recognition (if also annotated).
  • Include utility methods in generated model:
    • fromJson
    • toMap
    • toString, ==, hashCode
  • Add header to all generated files:
    // GENERATED CODE - YOU CAN USE THIS CODE AS YOUR PROJECT CODE
    // For issues, report to: example@gmail.com
    
1
likes
130
points
20
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple annotation package used to mark model classes for code generation. Designed to work with the `json_model_mapper_gen` generator package to create immutable data models automatically.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on json_model_mapper