omni_mapper 0.5.2 copy "omni_mapper: ^0.5.2" to clipboard
omni_mapper: ^0.5.2 copied to clipboard

Annotations for the OmniMapper code generator. Automatically generates type-safe object-to-object mapping code between DTOs, Models, and Entities.

0.5.2 #

  • Updates the README with detailed examples for all advanced features.

0.5.1 #

  • Bumps omni_mapper to 0.5.1.

0.5.0 #

  • Introduces @OmniField annotation for fine-grained field-level configuration directly on class properties.
  • Adds support for name, ignore, custom, and defaultValue inside @OmniField.
  • Unifies default value and custom mapping type validations.

0.4.0 #

  • Introduces the uses property to @OmniMapper for robust dependency injection and nested mapper integration.
  • Adds support for polymorphic subclass mapping via @SubclassMapping.
  • Implements MappingRule custom field expressions.
  • Supports evaluating literal default values during code generation.

0.3.0 #

  • Adds support for mapping from multiple source objects into a single target.
  • Adds automatic enum mapping (approach_i_enum_mapping.dart).
  • Implements deep auto-flattening for nested mapping.
  • Adds automatic reverse mapping via the generateReverse option.

0.2.0 #

  • Adds strictMode mapping option to enforce complete mappings.
  • Adds ignoreIfNull mapping option for PATCH-like object updates.
  • Introduces custom mapping hooks via the OmniHook abstract class.

0.1.0 #

  • Initial release.
  • Adds @OmniMapper annotation with support for target, from, methodName, fieldMaps, defaultValues, converters, ignoreFields, generateListMapper, and generateUpdateMethod.
  • Adds @OmniMappers annotation for defining multiple mappings on a single class.
  • Adds OmniConverter<S, T> abstract class for custom type conversions.
1
likes
160
points
141
downloads

Documentation

API reference

Publisher

verified publishermveloso.dev

Weekly Downloads

Annotations for the OmniMapper code generator. Automatically generates type-safe object-to-object mapping code between DTOs, Models, and Entities.

Repository (GitHub)
View/report issues

Topics

#mapper #code-generation #clean-architecture #dto

License

BSD-3-Clause (license)

More

Packages that depend on omni_mapper