toXml method

XmlNode toXml()

Implementation

XmlNode toXml() {
  final builder = XmlBuilder();
  builder.element('Metrics', nest: () {
    builder.element('EventThreshold', nest: eventThreshold!.toXml());
    builder.element('Status', nest: status);
  });
  return builder.buildDocument();
}