toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case VirtualGatewayPortProtocol.http:
      return 'http';
    case VirtualGatewayPortProtocol.http2:
      return 'http2';
    case VirtualGatewayPortProtocol.grpc:
      return 'grpc';
  }
}