toXml method
XmlDocument
toXml()
Implementation
XmlDocument toXml() {
final XmlBuilder builder = XmlBuilder();
builder.element('Tag', nest: () {
if (key != null) {
builder.element('Key', nest: key);
}
if (value != null) {
builder.element('Value', nest: value);
}
});
return builder.buildDocument();
}