toViewerProtocolPolicy method
Implementation
ViewerProtocolPolicy toViewerProtocolPolicy() {
switch (this) {
case 'allow-all':
return ViewerProtocolPolicy.allowAll;
case 'https-only':
return ViewerProtocolPolicy.httpsOnly;
case 'redirect-to-https':
return ViewerProtocolPolicy.redirectToHttps;
}
throw Exception('$this is not known in enum ViewerProtocolPolicy');
}