toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('MetricsConfiguration', nest: () {
    builder.element('Filter', nest: filter!.toXml());
    builder.element('Id', nest: id);
  });
  return builder.buildDocument();
}