toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('DeleteMarkerEntry', nest: () {
    builder.element('IsLatest', nest: isLatest! ? 'TRUE' : 'FALSE');
    builder.element('Key', nest: key);
    builder.element('LastModified', nest: lastModified!.toIso8601String());
    builder.element('Owner', nest: owner!.toXml());
    builder.element('VersionId', nest: versionId);
  });
  return builder.buildDocument();
}