ListTrafficPoliciesResponse.fromXml constructor

ListTrafficPoliciesResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory ListTrafficPoliciesResponse.fromXml(_s.XmlElement elem) {
  return ListTrafficPoliciesResponse(
    isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated')!,
    maxItems: _s.extractXmlStringValue(elem, 'MaxItems')!,
    trafficPolicyIdMarker:
        _s.extractXmlStringValue(elem, 'TrafficPolicyIdMarker')!,
    trafficPolicySummaries: _s
        .extractXmlChild(elem, 'TrafficPolicySummaries')!
        .findElements('TrafficPolicySummary')
        .map((c) => TrafficPolicySummary.fromXml(c))
        .toList(),
  );
}