toTrafficRoutingType method

TrafficRoutingType toTrafficRoutingType()

Implementation

TrafficRoutingType toTrafficRoutingType() {
  switch (this) {
    case 'TimeBasedCanary':
      return TrafficRoutingType.timeBasedCanary;
    case 'TimeBasedLinear':
      return TrafficRoutingType.timeBasedLinear;
    case 'AllAtOnce':
      return TrafficRoutingType.allAtOnce;
  }
  throw Exception('$this is not known in enum TrafficRoutingType');
}