MetricStat.fromXml constructor
MetricStat.fromXml(
- XmlElement elem
Implementation
factory MetricStat.fromXml(_s.XmlElement elem) {
return MetricStat(
metric: Metric.fromXml(_s.extractXmlChild(elem, 'Metric')!),
period: _s.extractXmlIntValue(elem, 'Period')!,
stat: _s.extractXmlStringValue(elem, 'Stat')!,
unit: _s.extractXmlStringValue(elem, 'Unit')?.toStandardUnit(),
);
}