ListDomainNamesResponse.fromXml constructor

ListDomainNamesResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory ListDomainNamesResponse.fromXml(_s.XmlElement elem) {
  return ListDomainNamesResponse(
    domainNames: Map.fromEntries(
      elem.getElement('DomainNames')?.findElements('entry').map(
                (c) => MapEntry(
                  _s.extractXmlStringValue(c, 'key')!,
                  _s.extractXmlStringValue(c, 'value')!,
                ),
              ) ??
          {},
    ),
  );
}