toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('S3Location', nest: () {
    builder.element('AccessControlList', nest: accessControlList!.toXml());
    builder.element('BucketName', nest: bucketName);
    builder.element('CannedACL', nest: cannedACL);
    builder.element('Encryption', nest: encryption!.toXml());
    builder.element('Prefix', nest: prefix);
    builder.element('StorageClass', nest: storageClass);
    builder.element('Tagging', nest: tagging!.toXml());
    builder.element('UserMetadata', nest: userMetadata!.toXml());
  });
  return builder.buildDocument();
}