toXml method
XmlNode
toXml()
Implementation
XmlNode toXml() {
final builder = XmlBuilder();
builder.element(
'DefaultRetention',
nest: () {
builder.element('Days', nest: days.toString());
builder.element('Mode', nest: mode);
builder.element('Years', nest: years.toString());
},
);
return builder.buildDocument();
}