MapMap class
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.
- Inheritance
- Implementers
- Annotations
-
- @Deprecated('''Use the [MapMapped] annotation, having in attention that [MapMapped] has different default precisions, 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 ''')
Constructors
- MapMap({bool includeFieldsByDefault = true, bool useDefaultsProvider = false, required TimePrecision durationPrecision, DateTimeRepresentation? dateTimeRepresentation = DateTimeRepresentation.iso8601String})
-
const
Properties
- dateTimeRepresentation → DateTimeRepresentation?
-
finalinherited
- durationPrecision → TimePrecision?
-
Defines the level of precision of DateTime and
Duration fields.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeFieldsByDefault → bool
-
Determines whether to include all fields by default.
finalinherited
-
knownSubClasses
→ List<
Type> ? -
finalinherited
- mapEnumToString → bool
-
Defines whether or not to map enum values to their name (as a String)
or to their index (int). Defaults to index.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useDefaultsProvider → bool
-
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited