AllowedMethods.fromXml constructor

AllowedMethods.fromXml(
  1. XmlElement elem
)

Implementation

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