checkVault method

Future<bool> checkVault(
  1. int versionId
)

Checks if a model version is in the vault.

versionId - The ID of the model version to check. Requires authentication.

Implementation

Future<bool> checkVault(int versionId) async {
  return _retryPolicy.execute(() async {
    final json = await _apiClient.get(
      '/v1/vault/check-vault',
      queryParams: {'versionId': versionId},
      requiresAuth: true,
    );

    return json['inVault'] as bool;
  });
}