toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('ReplicationRule', nest: () {
    builder.element('DeleteMarkerReplication',
        nest: deleteMarkerReplication!.toXml());
    builder.element('Destination', nest: destination!.toXml());
    builder.element('ExistingObjectReplication',
        nest: existingObjectReplication!.toXml());
    builder.element('Filter', nest: filter!.toXml());
    builder.element('ID', nest: iD);
    builder.element('Prefix', nest: prefix);
    builder.element('Priority', nest: priority.toString());
    builder.element('SourceSelectionCriteria',
        nest: sourceSelectionCriteria!.toXml());
    builder.element('Status', nest: status);
  });
  return builder.buildDocument();
}