MultipartUpload.fromXml constructor

MultipartUpload.fromXml(
  1. XmlElement xml
)

Implementation

MultipartUpload.fromXml(XmlElement xml) {
  initiated = DateTime.parse(getProp(xml, 'Initiated')!.innerText);
  initiator = Initiator.fromXml(getProp(xml, 'Initiator'));
  key = getProp(xml, 'Key')?.innerText;
  owner = Owner.fromXml(getProp(xml, 'Owner'));
  storageClass = getProp(xml, 'StorageClass')?.innerText;
  uploadId = getProp(xml, 'UploadId')?.innerText;
}