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