JsonService<R extends JsonRequestModel, S extends JsonResponseModel, H extends JsonServiceResponseHandler<S> > constructor
JsonService<R extends JsonRequestModel, S extends JsonResponseModel, H extends JsonServiceResponseHandler<S> > ({
- required H handler,
- required RestMethod method,
- required String path,
- required RestApi<
RestResponse> restApi,
Implementation
JsonService({
required H handler,
required RestMethod method,
required this.path,
required RestApi restApi,
}) : assert(path.isNotEmpty),
_handler = handler,
_method = method,
_restApi = restApi;