RoutingRule.fromXml constructor

RoutingRule.fromXml(
  1. XmlElement elem
)

Implementation

factory RoutingRule.fromXml(_s.XmlElement elem) {
  return RoutingRule(
    redirect: Redirect.fromXml(_s.extractXmlChild(elem, 'Redirect')!),
    condition: _s
        .extractXmlChild(elem, 'Condition')
        ?.let((e) => Condition.fromXml(e)),
  );
}