toStatus method
Implementation
Status toStatus() {
switch (this) {
case 'AVAILABLE':
return Status.available;
case 'CREATING':
return Status.creating;
case 'FAILED':
return Status.failed;
}
throw Exception('$this is not known in enum Status');
}