PublicKey.fromXml constructor

PublicKey.fromXml(
  1. XmlElement elem
)

Implementation

factory PublicKey.fromXml(_s.XmlElement elem) {
  return PublicKey(
    createdTime: _s.extractXmlDateTimeValue(elem, 'CreatedTime'),
    id: _s.extractXmlStringValue(elem, 'Id'),
    publicKeyConfig: _s
        .extractXmlChild(elem, 'PublicKeyConfig')
        ?.let((e) => PublicKeyConfig.fromXml(e)),
  );
}