ApiService class
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
-
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