Mapper class

Constructors

Mapper(List<MappingDefinition> definitions, {MapperConfig? config})

Properties

bySourceTypeMappings Map<Type, Mapping>
getter/setter pair
checkCycles bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mappingDefinitions List<MappingDefinition>
getter/setter pair
mappings Map<MappingKey, Mapping>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createContext() MappingContext
getMapping<S, T>() Mapping<S, T>
getMappingX(Type source, Type target) Mapping
getSourceMapping(Type source) Mapping
hasDefinition(Type source, Type target) bool
map<S, T>(S source, {MappingContext? context, Mapping<S, T>? mapping}) → T?
map a source object adn return the resulting target. S the source type T the target type source the source object context optional MappingContext in case of recursive maps.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerMapping(Mapping mapping) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

typeConversions TypeConversions
getter/setter pair