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.
1.2.0 #
Added #
- Nested Model Support: Automatic conversion of nested models annotated with
@EntityMapperby calling theirtoEntity()methods - List Support: Complete handling of
List<T>whereTis an annotated model, automatically applying.map((e) => e.toEntity()).toList() - Smart Type Detection: Intelligent differentiation between primitive types, nested models, and lists for appropriate conversion strategies
- Constructor Analysis: Deep examination of entity constructor parameters to ensure correct field mapping
Features #
- Generates clean, readable code with organized extension methods
- Build-time code generation with zero runtime dependencies
- Type-safe mapping with compile-time verification
- Support for complex nested data structures
1.1.0 #
Changed #
- Updated dependencies in pubspec.yaml, aligning with the latest versions of
source_gen,build, andanalyzer - Refactored
mapper_generator.dartto utilize updated element classes, enhancing compatibility with the new API structure
1.0.0 #
- Initial version.