Mapper class

Handles mapping between differnt types.

Constructors

Mapper()
Creates an instance of Mapper.

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

addMap<TDestination, TSource>(MapExpression<TDestination, TSource> expression) Mapper
Adds an expression that defines how to map from a TSource to a TDestination type.
hasMap(Type destination, Type source) bool
Checks if the mapper has a map for the destination and source types.
map<TDestination, TSource>(TSource source, [Map? params]) → TDestination
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