PredefinedMetricSpecification.fromXml constructor

PredefinedMetricSpecification.fromXml(
  1. XmlElement elem
)

Implementation

factory PredefinedMetricSpecification.fromXml(_s.XmlElement elem) {
  return PredefinedMetricSpecification(
    predefinedMetricType: _s
        .extractXmlStringValue(elem, 'PredefinedMetricType')!
        .toMetricType(),
    resourceLabel: _s.extractXmlStringValue(elem, 'ResourceLabel'),
  );
}