toRRType method
Implementation
RRType toRRType() {
switch (this) {
case 'SOA':
return RRType.soa;
case 'A':
return RRType.a;
case 'TXT':
return RRType.txt;
case 'NS':
return RRType.ns;
case 'CNAME':
return RRType.cname;
case 'MX':
return RRType.mx;
case 'NAPTR':
return RRType.naptr;
case 'PTR':
return RRType.ptr;
case 'SRV':
return RRType.srv;
case 'SPF':
return RRType.spf;
case 'AAAA':
return RRType.aaaa;
case 'CAA':
return RRType.caa;
case 'DS':
return RRType.ds;
}
throw Exception('$this is not known in enum RRType');
}