OriginRequestPolicyHeadersConfig.fromXml constructor

OriginRequestPolicyHeadersConfig.fromXml(
  1. XmlElement elem
)

Implementation

factory OriginRequestPolicyHeadersConfig.fromXml(_s.XmlElement elem) {
  return OriginRequestPolicyHeadersConfig(
    headerBehavior: _s
        .extractXmlStringValue(elem, 'HeaderBehavior')!
        .toOriginRequestPolicyHeaderBehavior(),
    headers:
        _s.extractXmlChild(elem, 'Headers')?.let((e) => Headers.fromXml(e)),
  );
}