ApplicationMetrics.fromXml constructor

ApplicationMetrics.fromXml(
  1. XmlElement elem
)

Implementation

factory ApplicationMetrics.fromXml(_s.XmlElement elem) {
  return ApplicationMetrics(
    duration: _s.extractXmlIntValue(elem, 'Duration'),
    latency:
        _s.extractXmlChild(elem, 'Latency')?.let((e) => Latency.fromXml(e)),
    requestCount: _s.extractXmlIntValue(elem, 'RequestCount'),
    statusCodes: _s
        .extractXmlChild(elem, 'StatusCodes')
        ?.let((e) => StatusCodes.fromXml(e)),
  );
}