CustomOriginConfig.fromXml constructor

CustomOriginConfig.fromXml(
  1. 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(),
    originKeepaliveTimeout:
        _s.extractXmlIntValue(elem, 'OriginKeepaliveTimeout'),
    originReadTimeout: _s.extractXmlIntValue(elem, 'OriginReadTimeout'),
    originSslProtocols: _s
        .extractXmlChild(elem, 'OriginSslProtocols')
        ?.let((e) => OriginSslProtocols.fromXml(e)),
  );
}