toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case RecordType.srv:
      return 'SRV';
    case RecordType.a:
      return 'A';
    case RecordType.aaaa:
      return 'AAAA';
    case RecordType.cname:
      return 'CNAME';
  }
}