TrafficPolicySummary.fromXml constructor

TrafficPolicySummary.fromXml(
  1. XmlElement elem
)

Implementation

factory TrafficPolicySummary.fromXml(_s.XmlElement elem) {
  return TrafficPolicySummary(
    id: _s.extractXmlStringValue(elem, 'Id')!,
    latestVersion: _s.extractXmlIntValue(elem, 'LatestVersion')!,
    name: _s.extractXmlStringValue(elem, 'Name')!,
    trafficPolicyCount: _s.extractXmlIntValue(elem, 'TrafficPolicyCount')!,
    type: _s.extractXmlStringValue(elem, 'Type')!.toRRType(),
  );
}