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