entityfy_generator 1.2.0
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