CacheBehaviors.fromXml constructor

CacheBehaviors.fromXml(
  1. XmlElement elem
)

Implementation

factory CacheBehaviors.fromXml(_s.XmlElement elem) {
  return CacheBehaviors(
    quantity: _s.extractXmlIntValue(elem, 'Quantity')!,
    items: _s.extractXmlChild(elem, 'Items')?.let((elem) => elem
        .findElements('CacheBehavior')
        .map((c) => CacheBehavior.fromXml(c))
        .toList()),
  );
}