toCloudHsmObjectState method

CloudHsmObjectState toCloudHsmObjectState()

Implementation

CloudHsmObjectState toCloudHsmObjectState() {
  switch (this) {
    case 'READY':
      return CloudHsmObjectState.ready;
    case 'UPDATING':
      return CloudHsmObjectState.updating;
    case 'DEGRADED':
      return CloudHsmObjectState.degraded;
  }
  throw Exception('$this is not known in enum CloudHsmObjectState');
}