Origins.fromXml constructor

Origins.fromXml(
  1. XmlElement elem
)

Implementation

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