ObjectVersion.fromXml constructor
ObjectVersion.fromXml(
- XmlElement elem
Implementation
factory ObjectVersion.fromXml(_s.XmlElement elem) {
return ObjectVersion(
eTag: _s.extractXmlStringValue(elem, 'ETag'),
isLatest: _s.extractXmlBoolValue(elem, 'IsLatest'),
key: _s.extractXmlStringValue(elem, 'Key'),
lastModified: _s.extractXmlDateTimeValue(elem, 'LastModified'),
owner: _s.extractXmlChild(elem, 'Owner')?.let((e) => Owner.fromXml(e)),
size: _s.extractXmlIntValue(elem, 'Size'),
storageClass: _s
.extractXmlStringValue(elem, 'StorageClass')
?.toObjectVersionStorageClass(),
versionId: _s.extractXmlStringValue(elem, 'VersionId'),
);
}