toVirtualGatewayPortProtocol method

VirtualGatewayPortProtocol toVirtualGatewayPortProtocol()

Implementation

VirtualGatewayPortProtocol toVirtualGatewayPortProtocol() {
  switch (this) {
    case 'http':
      return VirtualGatewayPortProtocol.http;
    case 'http2':
      return VirtualGatewayPortProtocol.http2;
    case 'grpc':
      return VirtualGatewayPortProtocol.grpc;
  }
  throw Exception('$this is not known in enum VirtualGatewayPortProtocol');
}