toBalancingStrategy method

BalancingStrategy toBalancingStrategy()

Implementation

BalancingStrategy toBalancingStrategy() {
  switch (this) {
    case 'SPOT_ONLY':
      return BalancingStrategy.spotOnly;
    case 'SPOT_PREFERRED':
      return BalancingStrategy.spotPreferred;
    case 'ON_DEMAND_ONLY':
      return BalancingStrategy.onDemandOnly;
  }
  throw Exception('$this is not known in enum BalancingStrategy');
}