JsonService<R extends JsonRequestModel, S extends JsonResponseModel, H extends JsonServiceResponseHandler<S>> class abstract

Implemented types

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
path String
final
resolvedPath String?
no setter
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(RestResponse response, JsonServiceResponseHandler<S> handler) bool
parseResponse(Map<String, dynamic> jsonResponse) → S
request({R? requestModel}) Future<void>
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