toTrafficRoutingConfigType method

TrafficRoutingConfigType toTrafficRoutingConfigType()

Implementation

TrafficRoutingConfigType toTrafficRoutingConfigType() {
  switch (this) {
    case 'ALL_AT_ONCE':
      return TrafficRoutingConfigType.allAtOnce;
    case 'CANARY':
      return TrafficRoutingConfigType.canary;
  }
  throw Exception('$this is not known in enum TrafficRoutingConfigType');
}