ListObjectsOutput.fromXml constructor

ListObjectsOutput.fromXml(
  1. XmlElement elem
)

Implementation

factory ListObjectsOutput.fromXml(_s.XmlElement elem) {
  return ListObjectsOutput(
    commonPrefixes: elem
        .findElements('CommonPrefixes')
        .map((c) => CommonPrefix.fromXml(c))
        .toList(),
    contents:
        elem.findElements('Contents').map((c) => Object.fromXml(c)).toList(),
    delimiter: _s.extractXmlStringValue(elem, 'Delimiter'),
    encodingType:
        _s.extractXmlStringValue(elem, 'EncodingType')?.toEncodingType(),
    isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated'),
    marker: _s.extractXmlStringValue(elem, 'Marker'),
    maxKeys: _s.extractXmlIntValue(elem, 'MaxKeys'),
    name: _s.extractXmlStringValue(elem, 'Name'),
    nextMarker: _s.extractXmlStringValue(elem, 'NextMarker'),
    prefix: _s.extractXmlStringValue(elem, 'Prefix'),
  );
}