toLoadBalancerStateEnum method

LoadBalancerStateEnum toLoadBalancerStateEnum()

Implementation

LoadBalancerStateEnum toLoadBalancerStateEnum() {
  switch (this) {
    case 'active':
      return LoadBalancerStateEnum.active;
    case 'provisioning':
      return LoadBalancerStateEnum.provisioning;
    case 'active_impaired':
      return LoadBalancerStateEnum.activeImpaired;
    case 'failed':
      return LoadBalancerStateEnum.failed;
  }
  throw Exception('$this is not known in enum LoadBalancerStateEnum');
}