importModelEvaluation method

  1. @override
Future<ModelEvaluation> importModelEvaluation(
  1. ImportModelEvaluationRequest request
)
override

Imports an externally generated ModelEvaluation.

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<ModelEvaluation> importModelEvaluation(
  ImportModelEvaluationRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_importModelEvaluation case final importModelEvaluation?) {
    return importModelEvaluation(request);
  }
  throw UnsupportedError('importModelEvaluation');
}