TrustedKeyGroups.fromXml constructor

TrustedKeyGroups.fromXml(
  1. XmlElement elem
)

Implementation

factory TrustedKeyGroups.fromXml(_s.XmlElement elem) {
  return TrustedKeyGroups(
    enabled: _s.extractXmlBoolValue(elem, 'Enabled')!,
    quantity: _s.extractXmlIntValue(elem, 'Quantity')!,
    items: _s
        .extractXmlChild(elem, 'Items')
        ?.let((elem) => _s.extractXmlStringListValues(elem, 'KeyGroup')),
  );
}