GetIdentityMailFromDomainAttributesResponse.fromXml constructor

GetIdentityMailFromDomainAttributesResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory GetIdentityMailFromDomainAttributesResponse.fromXml(
    _s.XmlElement elem) {
  return GetIdentityMailFromDomainAttributesResponse(
    mailFromDomainAttributes: Map.fromEntries(
      elem.getElement('MailFromDomainAttributes')?.findElements('entry').map(
                (c) => MapEntry(
                  _s.extractXmlStringValue(c, 'key')!,
                  IdentityMailFromDomainAttributes.fromXml(
                      _s.extractXmlChild(c, 'value')!),
                ),
              ) ??
          {},
    ),
  );
}