toRoutingPolicy method

RoutingPolicy toRoutingPolicy()

Implementation

RoutingPolicy toRoutingPolicy() {
  switch (this) {
    case 'MULTIVALUE':
      return RoutingPolicy.multivalue;
    case 'WEIGHTED':
      return RoutingPolicy.weighted;
  }
  throw Exception('$this is not known in enum RoutingPolicy');
}