map_mapper_generator 3.4.3 copy "map_mapper_generator: ^3.4.3" to clipboard
map_mapper_generator: ^3.4.3 copied to clipboard

outdated

Generates code that maps (converts) between instances of business classes to Map<String, dynamic> and back

3.4.3 #

  • Update a dependency to the latest release.

3.4.2 #

  • FIX: Fixed all pending warnings.

3.4.1 #

  • REFACTOR: Use interpolation to compose strings and values (fieldName + '.' => '$fieldName.').

3.4.0 #

  • FIX: Update analyzer dependency (#4).
  • FEAT: Include encapsulated fields that match constructor parameters when generating Mapper classes and .proto files (#6).

3.3.0 #

  • FEAT: Generating $type constant for each map-mapped class.

3.2.2 #

  • Update a dependency to the latest release.

3.2.1 #

  • Update a dependency to the latest release.

3.2.0 #

  • FEAT: Multi-level hierarchy polymorphism.

3.1.2 #

  • Fix to make MapMapper use defaultsProvider when setting late fields

3.1.1 #

  • Supporting mapping enum to string
  • Improved constructor support

3.1.0 #

Changes #

  • Moved source code repository from GitHub to GitLab
  • Adopted Melos and GitLab as CI solution
  • Changed license to MPL

Rationale for source code hosting change #

The change from source code repository is in protest by this project's initial and main author with what he views as GitHub's extremely week response to the carnage going on in Ukraine by Russia. He would have expected at a minimum for any new business in Russia and Belarus to be suspended, which was incidentally GitLab's course of action.

3.0.5 #

  • Added section on polymorphism in README

3.0.4 #

  • Support for polymorphism.

Now @MapMapped() has a new property called knownSubClasses. This is a list of types of subclasses of the type to which the annotation is applied. Each of these subclasses much also have the @MapMapped() annotation.

By identifying the known subclasses, toMap() and fromMap() methods become polymorphic.

3.0.3 #

  • Updated dependencies

3.0.2 #

  • Added support for DateTimeRepresentation

3.0.1 #

  • Updated dependencies

3.0.0 #

Breaking Change #

  • This version deprecates the @mapMap annotation, which defines a millisecond precision for duration fields.
  • The substituting @mapMapped annotation defines a microsecond precision for duration fields unless configured otherwise in build.yaml (see example).

2.0.1 #

  • Updated dependencies

2.0.0 #

  • Removed KeyHandler as a dependency and added as build generator (and many other breaking changes).

1.0.0 #

  • Initial version

1.0.1 #

  • Added history and future improvements section to README

1.1.0 #

  • Removed deprecated nullableFieldsByDefault property from annotations

1.1.1 #

  • Updated dependencies

1.2.0 #

  • Removed redundant base classes

1.2.1 #

  • Added reference to integrating framework.
0
likes
0
pub points
8%
popularity

Publisher

verified publishersquarealfa.com

Generates code that maps (converts) between instances of business classes to Map<String, dynamic> and back

Homepage
Repository (GitLab)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, decimal, map_mapper_annotations, source_gen, squarealfa_common_types, squarealfa_generators_common

More

Packages that depend on map_mapper_generator