ResourceChangeDetail.fromXml constructor

ResourceChangeDetail.fromXml(
  1. XmlElement elem
)

Implementation

factory ResourceChangeDetail.fromXml(_s.XmlElement elem) {
  return ResourceChangeDetail(
    causingEntity: _s.extractXmlStringValue(elem, 'CausingEntity'),
    changeSource:
        _s.extractXmlStringValue(elem, 'ChangeSource')?.toChangeSource(),
    evaluation:
        _s.extractXmlStringValue(elem, 'Evaluation')?.toEvaluationType(),
    target: _s
        .extractXmlChild(elem, 'Target')
        ?.let((e) => ResourceTargetDefinition.fromXml(e)),
  );
}