ApiService class

Constructors

ApiService(Client client)

Properties

client → Client
final
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

deleteRequest(String path) → Future<Map>
Make delete request to api
formatRequestParameter(dynamic value) → dynamic
getExceptionForResponse(Response response) → ApiException
Generate appropriate ApiException from http response.
getListRequest(String path, {Map<String, dynamic>? params, int? limit = 5}) → Future<List<Map<String, dynamic>>>
getModelListRequest<T>(String path, JsonDeserializer<T> deserializer, {Map<String, dynamic>? params, int? limit = 5}) → Future<List<T>>
getModelRequest<T>(String path, JsonDeserializer<T> deserializer, {Map<String, dynamic>? params}) → Future<T>
getRequest(String path, {Map<String, dynamic>? params}) → Future<Map>
Make get request to api
getRequestHeaders() → Map<String, String>
Get headers for standard API request
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
postRequest(String path, {Map<String, dynamic>? body}) → Future<Map<String, dynamic>>
Make post request to api
putRequest(String path, {Map<String, dynamic>? body}) → Future<Map>
Make put request to api
toString() → String
A string representation of this object.
inherited

Operators

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