EncryptionEntities.fromXml constructor

EncryptionEntities.fromXml(
  1. XmlElement elem
)

Implementation

factory EncryptionEntities.fromXml(_s.XmlElement elem) {
  return EncryptionEntities(
    quantity: _s.extractXmlIntValue(elem, 'Quantity')!,
    items: _s.extractXmlChild(elem, 'Items')?.let((elem) => elem
        .findElements('EncryptionEntity')
        .map((c) => EncryptionEntity.fromXml(c))
        .toList()),
  );
}