RestAPIService<DataType extends Jsonable<Object> > class
abstract
- Implementers
Constructors
-
RestAPIService.new({RestAPI? restAPI, DataType? dataType, String? token, String? apiKey, required String baseUrl, Duration? connectTimeout, Duration? receiveTimeout, Duration? sendTimeout, HttpClientAdapter? httpClientAdapter, Map<
String, dynamic> ? headers, TokenCallback? tokenCallback, CancelTokenCallback? cancelTokenCallback, List<Interceptor> ? interceptors})
Properties
- dataType → DataType?
-
Generic Jsonable DataType to allow for parsing of JSON data
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- restAPI → RestAPI
-
RestAPI instance to be used by the service
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dioErrorToCustomHttpResponse(
DioException error) → GoogleHTTPResponse -
dispose(
) → void -
genericParseResponse<
DataTypeGeneric> (Future futureResponse, {DataTypeGeneric? dataType}) → Future< GoogleHTTPResponse< DataTypeGeneric> > -
genericParseResponseAsList<
DataTypeGeneric extends Jsonable< (Object> ?>Future futureResponse, {DataTypeGeneric? dataType}) → Future< GoogleHTTPResponse< List< >DataTypeGeneric> > -
getSaveResponse<
ContainerDataTypeGeneric> (Future futureResponse) → Future< GoogleHTTPResponse> -
httpResponseToCustomHttpResponse(
HttpResponse response) → GoogleHTTPResponse -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseResponse(
Future futureResponse) → Future< GoogleHTTPResponse< DataType> > -
parseResponseAsList(
Future futureResponse) → Future< GoogleHTTPResponse< List< >DataType> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited