toStatus method
Implementation
Status toStatus() {
switch (this) {
case 'BUILDING':
return Status.building;
case 'READY':
return Status.ready;
case 'READY_BASIC_TESTING':
return Status.readyBasicTesting;
case 'FAILED':
return Status.failed;
case 'NOT_BUILT':
return Status.notBuilt;
}
throw Exception('$this is not known in enum Status');
}