getModelMonitor method

  1. @override
Future<ModelMonitor> getModelMonitor(
  1. GetModelMonitorRequest request
)
override

Gets a ModelMonitor.

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<ModelMonitor> getModelMonitor(GetModelMonitorRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getModelMonitor case final getModelMonitor?) {
    return getModelMonitor(request);
  }
  throw UnsupportedError('getModelMonitor');
}