Object.fromXml constructor

Object.fromXml(
  1. XmlElement elem
)

Implementation

factory Object.fromXml(_s.XmlElement elem) {
  return Object(
    eTag: _s.extractXmlStringValue(elem, 'ETag'),
    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')
        ?.toObjectStorageClass(),
  );
}