TrafficPolicy.fromXml constructor

TrafficPolicy.fromXml(
  1. XmlElement elem
)

Implementation

factory TrafficPolicy.fromXml(_s.XmlElement elem) {
  return TrafficPolicy(
    document: _s.extractXmlStringValue(elem, 'Document')!,
    id: _s.extractXmlStringValue(elem, 'Id')!,
    name: _s.extractXmlStringValue(elem, 'Name')!,
    type: _s.extractXmlStringValue(elem, 'Type')!.toRRType(),
    version: _s.extractXmlIntValue(elem, 'Version')!,
    comment: _s.extractXmlStringValue(elem, 'Comment'),
  );
}