toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('ReplicationConfiguration', nest: () {
    builder.element('Role', nest: role);
    builder.element('Rules', nest: rules!.toXml());
  });
  return builder.buildDocument();
}