GetSMSAttributesResponse.fromXml constructor

GetSMSAttributesResponse.fromXml(
  1. XmlElement elem
)

Implementation

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