toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case AddressFamily.ipv4:
      return 'ipv4';
    case AddressFamily.ipv6:
      return 'ipv6';
  }
}