Redirect.fromXml constructor

Redirect.fromXml(
  1. XmlElement elem
)

Implementation

factory Redirect.fromXml(_s.XmlElement elem) {
  return Redirect(
    hostName: _s.extractXmlStringValue(elem, 'HostName'),
    httpRedirectCode: _s.extractXmlStringValue(elem, 'HttpRedirectCode'),
    protocol: _s.extractXmlStringValue(elem, 'Protocol')?.toProtocol(),
    replaceKeyPrefixWith:
        _s.extractXmlStringValue(elem, 'ReplaceKeyPrefixWith'),
    replaceKeyWith: _s.extractXmlStringValue(elem, 'ReplaceKeyWith'),
  );
}