JsonService<R extends JsonRequestModel, S extends JsonResponseModel, H extends JsonServiceResponseHandler<S>> constructor

JsonService<R extends JsonRequestModel, S extends JsonResponseModel, H extends JsonServiceResponseHandler<S>>({
  1. required H handler,
  2. required RestMethod method,
  3. required String path,
  4. 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;