toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('MultipartUpload', nest: () {
    builder.element('Initiated', nest: initiated!.toIso8601String());
    builder.element('Initiator', nest: initiator!.toXml());
    builder.element('Key', nest: key);
    builder.element('Owner', nest: owner!.toXml());
    builder.element('StorageClass', nest: storageClass);
    builder.element('UploadId', nest: uploadId);
  });
  return builder.buildDocument();
}