toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('RecordsEvent', nest: () {
    builder.element('Payload', nest: payload);
  });
  return builder.buildDocument();
}