RestAPIService<I extends ChopperService, DataType extends Jsonable<Object>, ErrorType> class abstract

Created by krrigan on 02/27/19.

Constructors

RestAPIService(I service, {DataType? dataType, ErrorType? errorType, RestAPI? restAPI})

Properties

client ↔ ChopperClient
getter/setter pair
dataType ↔ DataType?
getter/setter pair
definitionType Type
Used internally to retrieve the service from ChopperClient.
no setter
errorType ↔ ErrorType?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
restAPI RestAPI
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service ↔ I
getter/setter pair

Methods

genericParseResponse<GenericDataType extends Jsonable<Object>?>(Future<Response> futureResponse, GenericDataType? dataType) Future<Response<GenericDataType>>
genericParseResponseAsList<GenericDataType extends Jsonable<Object>?>(Future<Response> futureResponse, GenericDataType? dataType) Future<Response<List<GenericDataType>>>
getAuthorization() → dynamic
getSaveResponse(Future<Response> futureResponse) Future<Response>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseError(Response response) Object?
parseResponse(Future<Response> futureResponse) Future<Response<DataType>>
parseResponseAsList(Future<Response> futureResponse) Future<Response<List<DataType>>>
toString() String
A string representation of this object.
inherited
updateHttpClient(Client httpClient) → void

Operators

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