ListObjectVersionsOutput.fromXml constructor

ListObjectVersionsOutput.fromXml(
  1. XmlElement elem
)

Implementation

factory ListObjectVersionsOutput.fromXml(_s.XmlElement elem) {
  return ListObjectVersionsOutput(
    commonPrefixes: elem
        .findElements('CommonPrefixes')
        .map((c) => CommonPrefix.fromXml(c))
        .toList(),
    deleteMarkers: elem
        .findElements('DeleteMarker')
        .map((c) => DeleteMarkerEntry.fromXml(c))
        .toList(),
    delimiter: _s.extractXmlStringValue(elem, 'Delimiter'),
    encodingType:
        _s.extractXmlStringValue(elem, 'EncodingType')?.toEncodingType(),
    isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated'),
    keyMarker: _s.extractXmlStringValue(elem, 'KeyMarker'),
    maxKeys: _s.extractXmlIntValue(elem, 'MaxKeys'),
    name: _s.extractXmlStringValue(elem, 'Name'),
    nextKeyMarker: _s.extractXmlStringValue(elem, 'NextKeyMarker'),
    nextVersionIdMarker:
        _s.extractXmlStringValue(elem, 'NextVersionIdMarker'),
    prefix: _s.extractXmlStringValue(elem, 'Prefix'),
    versionIdMarker: _s.extractXmlStringValue(elem, 'VersionIdMarker'),
    versions: elem
        .findElements('Version')
        .map((c) => ObjectVersion.fromXml(c))
        .toList(),
  );
}