MultipartUpload.fromXml constructor

MultipartUpload.fromXml(
  1. XmlElement elem
)

Implementation

factory MultipartUpload.fromXml(_s.XmlElement elem) {
  return MultipartUpload(
    initiated: _s.extractXmlDateTimeValue(elem, 'Initiated'),
    initiator: _s
        .extractXmlChild(elem, 'Initiator')
        ?.let((e) => Initiator.fromXml(e)),
    key: _s.extractXmlStringValue(elem, 'Key'),
    owner: _s.extractXmlChild(elem, 'Owner')?.let((e) => Owner.fromXml(e)),
    storageClass:
        _s.extractXmlStringValue(elem, 'StorageClass')?.toStorageClass(),
    uploadId: _s.extractXmlStringValue(elem, 'UploadId'),
  );
}