GetPublicKeyResult.fromXml constructor

GetPublicKeyResult.fromXml(
  1. XmlElement elem,
  2. {Map<String, String> headers}
)

Implementation

factory GetPublicKeyResult.fromXml(
  _s.XmlElement elem, {
  Map<String, String> headers,
}) {
  return GetPublicKeyResult(
    eTag: _s.extractHeaderStringValue(headers, 'ETag'),
    publicKey: _s
        .extractXmlChild(elem, 'PublicKey')
        ?.let((e) => PublicKey.fromXml(e)),
  );
}