RedirectActionConfig.fromXml constructor

RedirectActionConfig.fromXml(
  1. XmlElement elem
)

Implementation

factory RedirectActionConfig.fromXml(_s.XmlElement elem) {
  return RedirectActionConfig(
    statusCode: _s
        .extractXmlStringValue(elem, 'StatusCode')!
        .toRedirectActionStatusCodeEnum(),
    host: _s.extractXmlStringValue(elem, 'Host'),
    path: _s.extractXmlStringValue(elem, 'Path'),
    port: _s.extractXmlStringValue(elem, 'Port'),
    protocol: _s.extractXmlStringValue(elem, 'Protocol'),
    query: _s.extractXmlStringValue(elem, 'Query'),
  );
}