CustomOriginConfig.fromXml constructor
CustomOriginConfig.fromXml(
- XmlElement elem
Implementation
factory CustomOriginConfig.fromXml(_s.XmlElement elem) {
return CustomOriginConfig(
hTTPPort: _s.extractXmlIntValue(elem, 'HTTPPort')!,
hTTPSPort: _s.extractXmlIntValue(elem, 'HTTPSPort')!,
originProtocolPolicy: _s
.extractXmlStringValue(elem, 'OriginProtocolPolicy')!
.toOriginProtocolPolicy(),
originSslProtocols: _s
.extractXmlChild(elem, 'OriginSslProtocols')
?.let((e) => OriginSslProtocols.fromXml(e)),
);
}