getTrial method
Gets a Trial.
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<Trial> getTrial(GetTrialRequest request) async {
if (isClosed) throw StateError('Service is closed');
if (_getTrial case final getTrial?) {
return getTrial(request);
}
throw UnsupportedError('getTrial');
}