toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element(
    'InventoryS3BucketDestination',
    nest: () {
      builder.element('AccountId', nest: accountId);
      builder.element('Bucket', nest: bucket);
      builder.element('Encryption', nest: encryption!.toXml());
      builder.element('Format', nest: format);
      builder.element('Prefix', nest: prefix);
    },
  );
  return builder.buildDocument();
}