CachedMethods.fromXml constructor

CachedMethods.fromXml(
  1. XmlElement elem
)

Implementation

factory CachedMethods.fromXml(_s.XmlElement elem) {
  return CachedMethods(
    items: _s
        .extractXmlStringListValues(
            _s.extractXmlChild(elem, 'Items')!, 'Method')
        .map((s) => s.toMethod())
        .toList(),
    quantity: _s.extractXmlIntValue(elem, 'Quantity')!,
  );
}