toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element(
    'ObjectLockRule',
    nest: () {
      builder.element('DefaultRetention', nest: defaultRetention!.toXml());
    },
  );
  return builder.buildDocument();
}