MultipartUpload.fromXml constructor

MultipartUpload.fromXml(
  1. XmlElement xml
)

Implementation

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