toXML method

XMLNode toXML()

Implementation

XMLNode toXML() {
  return XMLNode.xmlns(
    tag: 'stanza-id',
    xmlns: stableIdXmlns,
    attributes: {
      'id': id,
      'by': by.toString(),
    },
  );
}