BaseModelApi<T extends BaseModel> class abstract

Constructors

BaseModelApi(BaseApiClient apiClient, BaseModelParser<T> parser)

Properties

apiClient BaseApiClient
final
hashCode int
The hash code for this object.
no setterinherited
parser BaseModelParser<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
no setter

Methods

create(Map source, {bool protected = true, bool verbose = false}) Future<T>
delete<K>(String action, {dynamic body, bool protected = true, bool verbose = false}) Future<Response<K>>
destroy(dynamic id, {dynamic body, bool protected = true, bool verbose = false}) Future<void>
get<K>(String action, {Map<String, dynamic>? params, bool protected = false, void onReceiveProgress(int, int)?, bool verbose = false}) Future<Response<K>>
list({Map<String, dynamic>? params, bool protected = false, bool rootList = false, bool verbose = false}) Future<List<T>>
listPaginated({Map<String, dynamic>? params, bool protected = false, bool verbose = false}) Future<Pagination<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<K>(String action, {dynamic body, bool protected = true, void onSendProgress(int, int)?, void onReceiveProgress(int, int)?, bool verbose = false}) Future<Response<K>>
put<K>(String action, {dynamic body, bool protected = true, void onSendProgress(int, int)?, void onReceiveProgress(int, int)?, bool verbose = false}) Future<Response<K>>
retrieve(dynamic id, {Map<String, dynamic>? params, bool protected = false, bool verbose = false}) Future<T>
toString() String
A string representation of this object.
inherited
update(dynamic id, Map source, {bool protected = true, bool verbose = false}) Future<T>

Operators

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