VirtualMFADevice.fromXml constructor

VirtualMFADevice.fromXml(
  1. XmlElement elem
)

Implementation

factory VirtualMFADevice.fromXml(_s.XmlElement elem) {
  return VirtualMFADevice(
    serialNumber: _s.extractXmlStringValue(elem, 'SerialNumber')!,
    base32StringSeed: _s.extractXmlUint8ListValue(elem, 'Base32StringSeed'),
    enableDate: _s.extractXmlDateTimeValue(elem, 'EnableDate'),
    qRCodePNG: _s.extractXmlUint8ListValue(elem, 'QRCodePNG'),
    user: _s.extractXmlChild(elem, 'User')?.let((e) => User.fromXml(e)),
  );
}