Mapper class

Constructors

Mapper()
Mapper.fromData(dynamic data)
factory
Mapper.fromJson(Map<String, dynamic> json)

Properties

hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

$<T>(List<String> fields, dynamic value, MapperSetter setter, [Transformable? transform]) → void
Map json fields to objects and vice versa. It uses value as a getter when mapping from object to json.
call<T>(List<String> fields, MapperSetter setter, [Transformable? transform]) → void
Map json fields to objects and vice versa. It uses setter as a getter when mapping from object to json.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(Mappable object) Map<String, dynamic>
toMappable<T>({T? as, List<Function>? builders}) → T?
toObject<T>([Type? type]) → T?
toString() String
A string representation of this object.
inherited

Operators

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