TargetHealth.fromXml constructor

TargetHealth.fromXml(
  1. 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(),
  );
}