toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('DeletedObject', nest: () {
    builder.element('DeleteMarker', nest: deleteMarker! ? 'TRUE' : 'FALSE');
    builder.element('DeleteMarkerVersionId', nest: deleteMarkerVersionId);
    builder.element('Key', nest: key);
    builder.element('VersionId', nest: versionId);
  });
  return builder.buildDocument();
}