MappingDefinition<S, T> class

Covers the to be executed operations that transform a source in a a target type. S the source type T the target type

Implementers

Constructors

MappingDefinition({Type? sourceClass, Type? targetClass})

Properties

baseMapping MappingDefinition?
getter/setter pair
finalizer Finalizer?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
intermediateResultDefinitions List<IntermediateResultDefinition>
getter/setter pair
operations List<MapOperation>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceClass Type
final
targetClass Type
final

Methods

addIntermediateResultDefinition(TypeDescriptor typeDescriptor, FromArrayConstructor ctr, int nargs, ValueReceiver valueReceiver) IntermediateResultDefinition
collectFinalizer() List<Finalizer>
createMapping(Mapper mapper) Mapping<S, T>
createOperations(Mapper mapper) OperationResult
derives(MappingDefinition mappingDefinition) MappingDefinition<S, T>
inherit all operations as specified in a parent mapping. This makes sense for inherited classes, where mappers inherit each other as well. mappingDefinition an inherited mapping
finalize(Finalizer<S, T> finalizer) MappingDefinition<S, T>
add a Finalizer finalizer a finalizer
findMatches(List<Match> matches) → void
map({dynamic constant, dynamic from, PropertyQualifier? all, dynamic to, bool deep = false, bool validate = false, Convert? convert}) MappingDefinition<S, T>
specifies a single operation, that will be executed while mapping. constant maps a constant value as a source from either a single source field or a field path to either a single target field or a field path all a PropertyQualifier wild card, that is used instead of from and to deep if true, a different supplied mapping is expected to transform the retrieved source value recursively convert optional Convert instance
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