DataModelAdapter<T> class final

Converts T to and from JSON for the object methods of UnifiedDataSource, such as putObject and getObject.

Constructors

DataModelAdapter({required FromJson<T> fromJson, required ToJson<T> toJson})
Creates an adapter from a pair of conversion functions.
const

Properties

fromJson → FromJson<T>
Builds a T from a JSON map.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
toJson → ToJson<T>
Turns a T into a JSON map.
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