HealthCheck.fromXml constructor

HealthCheck.fromXml(
  1. XmlElement elem
)

Implementation

factory HealthCheck.fromXml(_s.XmlElement elem) {
  return HealthCheck(
    healthyThreshold: _s.extractXmlIntValue(elem, 'HealthyThreshold')!,
    interval: _s.extractXmlIntValue(elem, 'Interval')!,
    target: _s.extractXmlStringValue(elem, 'Target')!,
    timeout: _s.extractXmlIntValue(elem, 'Timeout')!,
    unhealthyThreshold: _s.extractXmlIntValue(elem, 'UnhealthyThreshold')!,
  );
}