entityfy_generator 1.2.0 copy "entityfy_generator: ^1.2.0" to clipboard
entityfy_generator: ^1.2.0 copied to clipboard

Dart code generator that creates extension methods to map model classes to entity classes using annotations. Simplifies the implementation of toEntity() methods for clean data transformation between layers.

Entityfy Generator #

Code generator for the entityfy package. Automatically generates toEntity() methods for classes annotated with @EntityMapper.

Installation #

dev_dependencies:
  entityfy_generator: ^1.0.0
  build_runner: ^2.5.4

Features #

  • Nested Model Support: Automatically calls toEntity() on nested models
  • Type-Safe Mapping: Maps based on constructor parameters
  • Multiple Models: Handles multiple annotated classes in the same file
0
likes
120
points
18
downloads

Publisher

verified publishercposadadev.com

Weekly Downloads

Dart code generator that creates extension methods to map model classes to entity classes using annotations. Simplifies the implementation of toEntity() methods for clean data transformation between layers.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, entityfy, source_gen

More

Packages that depend on entityfy_generator