EitherService<R extends JsonRequestModel, S extends JsonResponseModel> class
abstract
- Implemented types
-
- Service<
R, S>
- Service<
- Implementers
Constructors
-
EitherService.new({required RestMethod method, required String path, required RestApi<
RestResponse> restApi})
Properties
Methods
-
isRequestModelJsonValid(
Map< String, dynamic> json) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
RestResponseType responseType, Map< String, dynamic> jsonResponse) → ServiceFailure -
parseResponse(
Map< String, dynamic> jsonResponse) → S -
request(
{R? requestModel}) → Future< Either< ServiceFailure, S> > -
ServiceResponseHandler callbacks will be used to handle the different
possible responses from the request
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited