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