toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('MetricsFilter', nest: () {
    builder.element('And', nest: and!.toXml());
    builder.element('Prefix', nest: prefix);
    builder.element('Tag', nest: tag!.toXml());
  });
  return builder.buildDocument();
}