GetQueueAttributesResult.fromXml constructor

GetQueueAttributesResult.fromXml(
  1. XmlElement elem
)

Implementation

factory GetQueueAttributesResult.fromXml(_s.XmlElement elem) {
  return GetQueueAttributesResult(
    attributes: Map.fromEntries(
      elem.findElements('Attribute').map(
            (c) => MapEntry(
              _s.extractXmlStringValue(c, 'Name')!.toQueueAttributeName(),
              _s.extractXmlStringValue(c, 'Value')!,
            ),
          ),
    ),
  );
}