toRecordType method

RecordType toRecordType()

Implementation

RecordType toRecordType() {
  switch (this) {
    case 'CNAME':
      return RecordType.cname;
  }
  throw Exception('$this is not known in enum RecordType');
}