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')?.toTargetHealthReasonEnum(),
state: _s.extractXmlStringValue(elem, 'State')?.toTargetHealthStateEnum(),
);
}