CachePolicyList.fromXml constructor

CachePolicyList.fromXml(
  1. XmlElement elem
)

Implementation

factory CachePolicyList.fromXml(_s.XmlElement elem) {
  return CachePolicyList(
    maxItems: _s.extractXmlIntValue(elem, 'MaxItems')!,
    quantity: _s.extractXmlIntValue(elem, 'Quantity')!,
    items: _s.extractXmlChild(elem, 'Items')?.let((elem) => elem
        .findElements('CachePolicySummary')
        .map((c) => CachePolicySummary.fromXml(c))
        .toList()),
    nextMarker: _s.extractXmlStringValue(elem, 'NextMarker'),
  );
}