toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('ObjectLockConfiguration', nest: () {
    builder.element('ObjectLockEnabled', nest: objectLockEnabled);
    builder.element('Rule', nest: rule!.toXml());
  });
  return builder.buildDocument();
}