toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('Destination', nest: () {
    builder.element('AccessControlTranslation',
        nest: accessControlTranslation!.toXml());
    builder.element('Account', nest: account);
    builder.element('Bucket', nest: bucket);
    builder.element('EncryptionConfiguration',
        nest: encryptionConfiguration!.toXml());
    builder.element('Metrics', nest: metrics!.toXml());
    builder.element('ReplicationTime', nest: replicationTime!.toXml());
    builder.element('StorageClass', nest: storageClass);
  });
  return builder.buildDocument();
}