ActiveTrustedKeyGroups.fromXml constructor

ActiveTrustedKeyGroups.fromXml(
  1. XmlElement elem
)

Implementation

factory ActiveTrustedKeyGroups.fromXml(_s.XmlElement elem) {
  return ActiveTrustedKeyGroups(
    enabled: _s.extractXmlBoolValue(elem, 'Enabled')!,
    quantity: _s.extractXmlIntValue(elem, 'Quantity')!,
    items: _s.extractXmlChild(elem, 'Items')?.let((elem) => elem
        .findElements('KeyGroup')
        .map((c) => KGKeyPairIds.fromXml(c))
        .toList()),
  );
}