DescribeEnvironmentHealthResult.fromXml constructor
DescribeEnvironmentHealthResult.fromXml(
- XmlElement elem
Implementation
factory DescribeEnvironmentHealthResult.fromXml(_s.XmlElement elem) {
return DescribeEnvironmentHealthResult(
applicationMetrics: _s
.extractXmlChild(elem, 'ApplicationMetrics')
?.let((e) => ApplicationMetrics.fromXml(e)),
causes: _s
.extractXmlChild(elem, 'Causes')
?.let((elem) => _s.extractXmlStringListValues(elem, 'member')),
color: _s.extractXmlStringValue(elem, 'Color'),
environmentName: _s.extractXmlStringValue(elem, 'EnvironmentName'),
healthStatus: _s.extractXmlStringValue(elem, 'HealthStatus'),
instancesHealth: _s
.extractXmlChild(elem, 'InstancesHealth')
?.let((e) => InstanceHealthSummary.fromXml(e)),
refreshedAt: _s.extractXmlDateTimeValue(elem, 'RefreshedAt'),
status: _s.extractXmlStringValue(elem, 'Status')?.toEnvironmentHealth(),
);
}