OriginGroups.fromXml constructor

OriginGroups.fromXml(
  1. XmlElement elem
)

Implementation

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