EitherService<R extends JsonRequestModel, S extends JsonResponseModel> constructor

EitherService<R extends JsonRequestModel, S extends JsonResponseModel>({
  1. required RestMethod method,
  2. required String path,
  3. required RestApi<RestResponse> restApi,
})

Implementation

EitherService({
  required RestMethod method,
  required this.path,
  required RestApi restApi,
})   : assert(path.isNotEmpty),
      _path = path,
      _method = method,
      _restApi = restApi;