map_mapper_annotations library Null safety

Contains annotations and mappers to allow the mapping between PODOs and Map<String, dynamic> maps used to interact with MongoDb via mongo_dart package.

Classes

DefaultKeyHandler
KeyHandler
MapField
When applied as an annotation to a field, indicates the code generator to map that field.
MapIgnore
When applied as an annotation to a field, indicates to the code generator to ignore that field.
MapMap
Annotate PODO class with MapMap in order to signal the code generator that it is to produce a map mapper for the class to which the annotation was applied.
MapMapped
Annotate PODO class with MapMap in order to signal the code generator that it is to produce a map mapper for the class to which the annotation was applied.
MapMapper<TEntity>
Converts instances of type TEntity to Map<String, dynamic> and from Map<String, dynamic> to TEntity

Constants

mapIgnore → const MapIgnore
mapMap → const MapMap
@Deprecated('''Use the [mapMapped] annotation, having in attention that [mapMapped] defines a microsecond precision for Duration properties, which is a breaking change from versions below 3.0.0. In order to restore the previous defaults, add a build.yaml file containing the following: # Read about `build.yaml` at https://pub.dev/packages/build_config targets: \$default: builders: map_mapper_generator:map_map_generator: options: durationPrecision: microseconds dateTimeRepresentation: iso8601String ''')
MapMap(durationPrecision: TimePrecision.milliseconds)
mapMapped → const MapMapped