MetricsFilter.fromXml constructor

MetricsFilter.fromXml(
  1. XmlElement elem
)

Implementation

factory MetricsFilter.fromXml(_s.XmlElement elem) {
  return MetricsFilter(
    and: _s
        .extractXmlChild(elem, 'And')
        ?.let((e) => MetricsAndOperator.fromXml(e)),
    prefix: _s.extractXmlStringValue(elem, 'Prefix'),
    tag: _s.extractXmlChild(elem, 'Tag')?.let((e) => Tag.fromXml(e)),
  );
}