toEndpointType method

EndpointType toEndpointType()

Implementation

EndpointType toEndpointType() {
  switch (this) {
    case 'REGIONAL':
      return EndpointType.regional;
    case 'EDGE':
      return EndpointType.edge;
    case 'PRIVATE':
      return EndpointType.private;
  }
  throw Exception('$this is not known in enum EndpointType');
}