ListTrafficPolicyVersionsResponse.fromXml constructor

ListTrafficPolicyVersionsResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory ListTrafficPolicyVersionsResponse.fromXml(_s.XmlElement elem) {
  return ListTrafficPolicyVersionsResponse(
    isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated')!,
    maxItems: _s.extractXmlStringValue(elem, 'MaxItems')!,
    trafficPolicies: _s
        .extractXmlChild(elem, 'TrafficPolicies')!
        .findElements('TrafficPolicy')
        .map((c) => TrafficPolicy.fromXml(c))
        .toList(),
    trafficPolicyVersionMarker:
        _s.extractXmlStringValue(elem, 'TrafficPolicyVersionMarker')!,
  );
}