AutoMapper class

Handles mapping between different types.

Constructors

AutoMapper()

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 a TTarget type.
addManualMap<TSource, TTarget>(MapExpression<TSource, TTarget> expression) → void
Adds an expression that defines how to manual map from a TSource to a TTarget 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 a TTarget 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 and source types.
hasManualMap(Type destination, Type source) bool
Checks if the mapper has a manual map for the destination and source types.
hasMap(Type destination, Type source) bool
Checks if the mapper has a map for the destination and source 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