AutoMapper class
Handles mapping between different types.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAutoMap<
TSource extends AutoMapperModel, TTarget> (TTarget expression(Map< String, dynamic> )) → void -
Adds a function that defines how to auto map from a
TSource
to aTTarget
type. -
addManualMap<
TSource, TTarget> (MapExpression< TSource, TTarget> expression) → void -
Adds an expression that defines how to manual map from a
TSource
to aTTarget
type. -
addMap<
TSource extends AutoMapperModel, TTarget> (TTarget expression(Map< String, dynamic> )) → void -
Adds a function that defines how to auto map from a
TSource
to aTTarget
type. -
autoMap<
TSource extends AutoMapperModel, TTarget> (TSource source) → TTarget -
Maps the
source
with auto map. -
hasAutoMap(
Type destination, Type source) → bool -
Checks if the mapper has an auto map for the
destination
andsource
types. -
hasManualMap(
Type destination, Type source) → bool -
Checks if the mapper has a manual map for the
destination
andsource
types. -
hasMap(
Type destination, Type source) → bool -
Checks if the mapper has a map for the
destination
andsource
types. -
manualMap<
TSource, TTarget> (TSource source, [Map params = const {}]) → TTarget -
Maps the
source
with manual map. -
map<
TSource, TTarget> (TSource source, [Map params = const {}]) → TTarget -
Maps the
source
. -
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
Static Properties
- I → AutoMapper
-
no setter