getModel method

Future<GetModelResponse> getModel(
  1. int id
)

Retrieves a model by ID.

id - The ID of the model to retrieve.

Implementation

Future<GetModelResponse> getModel(int id) async {
  return _retryPolicy.execute(() async {
    final json = await _apiClient.get('/v1/models/$id');
    return GetModelResponse.fromJson(json);
  });
}