toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element(
    'TopicConfigurationDeprecated',
    nest: () {
      builder.element('Event', nest: event);
      builder.element('Events', nest: events);
      builder.element('Id', nest: id);
      builder.element('Topic', nest: topic);
    },
  );
  return builder.buildDocument();
}