toOriginProtocolPolicy method
Implementation
OriginProtocolPolicy toOriginProtocolPolicy() {
switch (this) {
case 'http-only':
return OriginProtocolPolicy.httpOnly;
case 'match-viewer':
return OriginProtocolPolicy.matchViewer;
case 'https-only':
return OriginProtocolPolicy.httpsOnly;
}
throw Exception('$this is not known in enum OriginProtocolPolicy');
}