toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case NetworkProtocol.tcp:
      return 'tcp';
    case NetworkProtocol.all:
      return 'all';
    case NetworkProtocol.udp:
      return 'udp';
    case NetworkProtocol.icmp:
      return 'icmp';
  }
}