toFleetType method
Implementation
FleetType toFleetType() {
switch (this) {
case 'ON_DEMAND':
return FleetType.onDemand;
case 'SPOT':
return FleetType.spot;
}
throw Exception('$this is not known in enum FleetType');
}
FleetType toFleetType() {
switch (this) {
case 'ON_DEMAND':
return FleetType.onDemand;
case 'SPOT':
return FleetType.spot;
}
throw Exception('$this is not known in enum FleetType');
}