getModel method
Gets a Model.
May throw NotFoundException. May throw TooManyRequestsException.
Parameter apiId
:
The API identifier.
Parameter modelId
:
The model ID.
Implementation
Future<GetModelResponse> getModel({
required String apiId,
required String modelId,
}) async {
ArgumentError.checkNotNull(apiId, 'apiId');
ArgumentError.checkNotNull(modelId, 'modelId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v2/apis/${Uri.encodeComponent(apiId)}/models/${Uri.encodeComponent(modelId)}',
exceptionFnMap: _exceptionFns,
);
return GetModelResponse.fromJson(response);
}