toHsmStatus method
Implementation
HsmStatus toHsmStatus() {
switch (this) {
case 'PENDING':
return HsmStatus.pending;
case 'RUNNING':
return HsmStatus.running;
case 'UPDATING':
return HsmStatus.updating;
case 'SUSPENDED':
return HsmStatus.suspended;
case 'TERMINATING':
return HsmStatus.terminating;
case 'TERMINATED':
return HsmStatus.terminated;
case 'DEGRADED':
return HsmStatus.degraded;
}
throw Exception('$this is not known in enum HsmStatus');
}