Headers.fromXml constructor

Headers.fromXml(
  1. XmlElement elem
)

Implementation

factory Headers.fromXml(_s.XmlElement elem) {
  return Headers(
    quantity: _s.extractXmlIntValue(elem, 'Quantity')!,
    items: _s
        .extractXmlChild(elem, 'Items')
        ?.let((elem) => _s.extractXmlStringListValues(elem, 'Name')),
  );
}