RestAdapter<TModel extends RestModel> class abstract

Constructors that convert app models to and from REST

Constructors

RestAdapter()

Properties

hashCode int
The hash code for this object.
no setterinherited
restRequest → (RestRequestTransformer Function(Query?, TModel?)?)
The endpoint path to access provided a query. Must include a leading slash.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromRest(Map<String, dynamic> input, {required RestProvider provider, ModelRepository<RestModel>? repository}) Future<TModel>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toRest(TModel input, {required RestProvider provider, ModelRepository<RestModel>? repository}) Future<Map<String, dynamic>>
toString() String
A string representation of this object.
inherited

Operators

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