MapType<SOURCE, TARGET> class final

Configured mapping from SOURCE to TARGET.

Constructors

MapType({List<Field> fields = const [], List<TypeConverter<Object?, Object?>> converters = const [], Object? whenSourceIsNull, String? constructor, bool? ignoreFieldNull, bool reverse = false})
Constructs mapping between SOURCE and TARGET types.
const

Properties

constructor String?
Selects named (factory) constructor by name.
final
converters List<TypeConverter<Object?, Object?>>
List of type converters.
final
fields List<Field>
Configuration for TARGET's fields.
final
hashCode int
The hash code for this object.
no setterinherited
ignoreFieldNull bool?
Ignores if SOURCE's field is nullable and TARGET's field non-nullable.
final
reverse bool
Includes reverse mapping.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
whenSourceIsNull Object?
Provides default value if SOURCE is null.
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