Metrics.fromXml constructor

Metrics.fromXml(
  1. XmlElement elem
)

Implementation

factory Metrics.fromXml(_s.XmlElement elem) {
  return Metrics(
    status: _s.extractXmlStringValue(elem, 'Status')!.toMetricsStatus(),
    eventThreshold: _s
        .extractXmlChild(elem, 'EventThreshold')
        ?.let((e) => ReplicationTimeValue.fromXml(e)),
  );
}