toWebhookAuthenticationType method
Implementation
WebhookAuthenticationType toWebhookAuthenticationType() {
switch (this) {
case 'GITHUB_HMAC':
return WebhookAuthenticationType.githubHmac;
case 'IP':
return WebhookAuthenticationType.ip;
case 'UNAUTHENTICATED':
return WebhookAuthenticationType.unauthenticated;
}
throw Exception('$this is not known in enum WebhookAuthenticationType');
}