toStatus method
Implementation
Status toStatus() {
switch (this) {
case 'STANDBY':
return Status.standby;
case 'ACTIVE':
return Status.active;
case 'UPDATING':
return Status.updating;
case 'DELETING':
return Status.deleting;
case 'STARTING':
return Status.starting;
case 'STOPPING':
return Status.stopping;
case 'ERROR':
return Status.error;
}
throw Exception('$this is not known in enum Status');
}