TargetHealth.fromXml constructor
TargetHealth.fromXml(
- XmlElement elem
Implementation
factory TargetHealth.fromXml(_s.XmlElement elem) {
return TargetHealth(
description: _s.extractXmlStringValue(elem, 'Description'),
reason: _s.extractXmlStringValue(elem, 'Reason')?.toTargetHealthReason(),
state: _s.extractXmlStringValue(elem, 'State')?.toTargetState(),
);
}