HealthCheckObservation.fromXml constructor

HealthCheckObservation.fromXml(
  1. XmlElement elem
)

Implementation

factory HealthCheckObservation.fromXml(_s.XmlElement elem) {
  return HealthCheckObservation(
    iPAddress: _s.extractXmlStringValue(elem, 'IPAddress'),
    region: _s.extractXmlStringValue(elem, 'Region')?.toHealthCheckRegion(),
    statusReport: _s
        .extractXmlChild(elem, 'StatusReport')
        ?.let((e) => StatusReport.fromXml(e)),
  );
}