Origins.fromXml constructor

Origins.fromXml(
  1. XmlElement elem
)

Implementation

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