toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('ObjectLockRetention', nest: () {
    builder.element('Mode', nest: mode);
    builder.element('RetainUntilDate',
        nest: retainUntilDate!.toIso8601String());
  });
  return builder.buildDocument();
}