toFleetStatus method
Implementation
FleetStatus toFleetStatus() {
switch (this) {
case 'NEW':
return FleetStatus.$new;
case 'DOWNLOADING':
return FleetStatus.downloading;
case 'VALIDATING':
return FleetStatus.validating;
case 'BUILDING':
return FleetStatus.building;
case 'ACTIVATING':
return FleetStatus.activating;
case 'ACTIVE':
return FleetStatus.active;
case 'DELETING':
return FleetStatus.deleting;
case 'ERROR':
return FleetStatus.error;
case 'TERMINATED':
return FleetStatus.terminated;
}
throw Exception('$this is not known in enum FleetStatus');
}