RestAPIService<I extends ChopperService, DataType extends Jsonable<Object> , ErrorType> constructor
RestAPIService<I extends ChopperService, DataType extends Jsonable<Object> , ErrorType> (
- I service, {
- DataType? dataType,
- ErrorType? errorType,
- RestAPI? restAPI,
Implementation
RestAPIService(
this.service, {
this.dataType,
this.errorType,
RestAPI.RestAPI? restAPI,
}) : restAPI = restAPI ?? RestAPI.restAPI {
this.restAPI.addService(service);
}