toXml method
Implementation
XMLNode toXml() {
final attributes = {
'jid': jid.toString(),
};
if (node != null) {
attributes['node'] = node!;
}
if (name != null) {
attributes['name'] = name!;
}
return XMLNode(
tag: 'node',
attributes: attributes,
);
}