EitherService<R extends JsonRequestModel, S extends JsonResponseModel> class abstract

Implemented types
Implementers

Constructors

EitherService.new({required RestMethod method, required String path, required RestApi<RestResponse> restApi})

Properties

hashCode int
The hash code for this object.
no setterinherited
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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