HealthCheck.fromXml constructor

HealthCheck.fromXml(
  1. XmlElement elem
)

Implementation

factory HealthCheck.fromXml(_s.XmlElement elem) {
  return HealthCheck(
    callerReference: _s.extractXmlStringValue(elem, 'CallerReference')!,
    healthCheckConfig: HealthCheckConfig.fromXml(
        _s.extractXmlChild(elem, 'HealthCheckConfig')!),
    healthCheckVersion: _s.extractXmlIntValue(elem, 'HealthCheckVersion')!,
    id: _s.extractXmlStringValue(elem, 'Id')!,
    cloudWatchAlarmConfiguration: _s
        .extractXmlChild(elem, 'CloudWatchAlarmConfiguration')
        ?.let((e) => CloudWatchAlarmConfiguration.fromXml(e)),
    linkedService: _s
        .extractXmlChild(elem, 'LinkedService')
        ?.let((e) => LinkedService.fromXml(e)),
  );
}