ListObjectsV2Output.fromXml constructor
ListObjectsV2Output.fromXml(
- XmlElement elem
Implementation
factory ListObjectsV2Output.fromXml(_s.XmlElement elem) {
return ListObjectsV2Output(
commonPrefixes: elem
.findElements('CommonPrefixes')
.map((c) => CommonPrefix.fromXml(c))
.toList(),
contents:
elem.findElements('Contents').map((c) => Object.fromXml(c)).toList(),
continuationToken: _s.extractXmlStringValue(elem, 'ContinuationToken'),
delimiter: _s.extractXmlStringValue(elem, 'Delimiter'),
encodingType:
_s.extractXmlStringValue(elem, 'EncodingType')?.toEncodingType(),
isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated'),
keyCount: _s.extractXmlIntValue(elem, 'KeyCount'),
maxKeys: _s.extractXmlIntValue(elem, 'MaxKeys'),
name: _s.extractXmlStringValue(elem, 'Name'),
nextContinuationToken:
_s.extractXmlStringValue(elem, 'NextContinuationToken'),
prefix: _s.extractXmlStringValue(elem, 'Prefix'),
startAfter: _s.extractXmlStringValue(elem, 'StartAfter'),
);
}