getModelEvaluationSlice method

  1. @override
Future<ModelEvaluationSlice> getModelEvaluationSlice(
  1. GetModelEvaluationSliceRequest request
)
override

Gets a ModelEvaluationSlice.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<ModelEvaluationSlice> getModelEvaluationSlice(
  GetModelEvaluationSliceRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getModelEvaluationSlice case final getModelEvaluationSlice?) {
    return getModelEvaluationSlice(request);
  }
  throw UnsupportedError('getModelEvaluationSlice');
}