RestAPIService<I extends ChopperService, DataType extends Jsonable<Object>, ErrorType> constructor

RestAPIService<I extends ChopperService, DataType extends Jsonable<Object>, ErrorType>(
  1. I service, {
  2. DataType? dataType,
  3. ErrorType? errorType,
  4. RestAPI? restAPI,
})

Implementation

RestAPIService(
  this.service, {
  this.dataType,
  this.errorType,
  RestAPI.RestAPI? restAPI,
}) : restAPI = restAPI ?? RestAPI.restAPI {
  this.restAPI.addService(service);
}