toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('StatsEvent', nest: () {
    builder.element('Details', nest: details!.toXml());
  });
  return builder.buildDocument();
}