PolymorphicMappingDefinition class

Inheritance

Constructors

PolymorphicMappingDefinition({required String field, required Type targetClass})

Properties

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

Methods

addIntermediateResultDefinition(TypeDescriptor typeDescriptor, FromArrayConstructor ctr, int nargs, ValueReceiver valueReceiver) → IntermediateResultDefinition
inherited
collectFinalizer() → List<Finalizer>
inherited
createMapping(Mapper mapper) → Mapping<Map<String, dynamic>, dynamic>
override
createOperations(Mapper mapper) → OperationResult
inherited
derives(MappingDefinition mappingDefinition) → MappingDefinition<Map<String, dynamic>, dynamic>
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
inherited
finalize(Finalizer<Map<String, dynamic>, dynamic> finalizer) → MappingDefinition<Map<String, dynamic>, dynamic>
add a Finalizer finalizer a finalizer
inherited
findMatches(List<Match> matches) → void
inherited
map({dynamic constant, dynamic from, PropertyQualifier? all, dynamic to, bool deep = false, bool validate = false, Convert? convert}) → MappingDefinition<Map<String, dynamic>, dynamic>
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
inherited
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