Metric.fromXml constructor
Metric.fromXml(
- XmlElement elem
Implementation
factory Metric.fromXml(_s.XmlElement elem) {
return Metric(
dimensions: _s.extractXmlChild(elem, 'Dimensions')?.let((elem) => elem
.findElements('member')
.map((c) => Dimension.fromXml(c))
.toList()),
metricName: _s.extractXmlStringValue(elem, 'MetricName'),
namespace: _s.extractXmlStringValue(elem, 'Namespace'),
);
}