toHsmState method

HsmState toHsmState()

Implementation

HsmState toHsmState() {
  switch (this) {
    case 'CREATE_IN_PROGRESS':
      return HsmState.createInProgress;
    case 'ACTIVE':
      return HsmState.active;
    case 'DEGRADED':
      return HsmState.degraded;
    case 'DELETE_IN_PROGRESS':
      return HsmState.deleteInProgress;
    case 'DELETED':
      return HsmState.deleted;
  }
  throw Exception('$this is not known in enum HsmState');
}