Statement.fromXml constructor

Statement.fromXml(
  1. XmlElement elem
)

Implementation

factory Statement.fromXml(_s.XmlElement elem) {
  return Statement(
    endPosition: _s
        .extractXmlChild(elem, 'EndPosition')
        ?.let((e) => Position.fromXml(e)),
    sourcePolicyId: _s.extractXmlStringValue(elem, 'SourcePolicyId'),
    sourcePolicyType: _s
        .extractXmlStringValue(elem, 'SourcePolicyType')
        ?.toPolicySourceType(),
    startPosition: _s
        .extractXmlChild(elem, 'StartPosition')
        ?.let((e) => Position.fromXml(e)),
  );
}