SimulatePolicyResponse.fromXml constructor

SimulatePolicyResponse.fromXml(
  1. XmlElement elem
)

Implementation

factory SimulatePolicyResponse.fromXml(_s.XmlElement elem) {
  return SimulatePolicyResponse(
    evaluationResults: _s.extractXmlChild(elem, 'EvaluationResults')?.let(
        (elem) => elem
            .findElements('member')
            .map((c) => EvaluationResult.fromXml(c))
            .toList()),
    isTruncated: _s.extractXmlBoolValue(elem, 'IsTruncated'),
    marker: _s.extractXmlStringValue(elem, 'Marker'),
  );
}