toInstanceStatus method
Implementation
InstanceStatus toInstanceStatus() {
switch (this) {
case 'IN_USE':
return InstanceStatus.inUse;
case 'PREPARING':
return InstanceStatus.preparing;
case 'AVAILABLE':
return InstanceStatus.available;
case 'NOT_AVAILABLE':
return InstanceStatus.notAvailable;
}
throw Exception('$this is not known in enum InstanceStatus');
}