GetSubscriptionAttributesResponse.fromXml constructor

GetSubscriptionAttributesResponse.fromXml(
  1. XmlElement elem
)

Implementation

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