toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('InventoryConfiguration', nest: () {
    builder.element('Destination', nest: destination!.toXml());
    builder.element('Filter', nest: filter!.toXml());
    builder.element('Id', nest: id);
    builder.element('IncludedObjectVersions', nest: includedObjectVersions);
    builder.element('IsEnabled', nest: isEnabled! ? 'TRUE' : 'FALSE');
    builder.element('OptionalFields', nest: optionalFields);
    builder.element('Schedule', nest: schedule!.toXml());
  });
  return builder.buildDocument();
}