toFleetType method

FleetType toFleetType()

Implementation

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