TestDNSAnswerResponse.fromXml constructor

TestDNSAnswerResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory TestDNSAnswerResponse.fromXml(_s.XmlElement elem) {
  return TestDNSAnswerResponse(
    nameserver: _s.extractXmlStringValue(elem, 'Nameserver')!,
    protocol: _s.extractXmlStringValue(elem, 'Protocol')!,
    recordData: _s.extractXmlStringListValues(
        _s.extractXmlChild(elem, 'RecordData')!, 'RecordDataEntry'),
    recordName: _s.extractXmlStringValue(elem, 'RecordName')!,
    recordType: _s.extractXmlStringValue(elem, 'RecordType')!.toRRType(),
    responseCode: _s.extractXmlStringValue(elem, 'ResponseCode')!,
  );
}