getCorpus method

  1. @override
Future<Corpus> getCorpus(
  1. GetCorpusRequest request
)
override

Gets information about a specific Corpus.

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<Corpus> getCorpus(GetCorpusRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getCorpus case final getCorpus?) {
    return getCorpus(request);
  }
  throw UnsupportedError('getCorpus');
}