ObjectMap<TSrc, TDst> class
A class for describing a conversion to be generated
TSrc
is the source type
TDst
is the destination type
Constructors
-
ObjectMap({NameConvention? srcConvention, NameConvention? dstConvention, Map<
String, String> renameFields = const {}, bool reverse = true}) -
const
Properties
- dstConvention → NameConvention?
-
Naming convention of destination class
final
- dstType → Type
-
Destination Type
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
renameFields
→ Map<
String, String> -
Rename fields during auto mapper.
Matches a source with key to destination with value
renameFields inverse will be used during reverse map reverse option
final
- reverse → bool
-
If true not only will a map be generated for TSrc to TDst but also for TDst to TSrc
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- srcConvention → NameConvention?
-
Naming convention of source class
final
- srcType → Type
-
Source Type
final
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