toAuthenticationType method
Implementation
AuthenticationType toAuthenticationType() {
switch (this) {
case 'API_KEY':
return AuthenticationType.apiKey;
case 'AWS_IAM':
return AuthenticationType.awsIam;
case 'AMAZON_COGNITO_USER_POOLS':
return AuthenticationType.amazonCognitoUserPools;
case 'OPENID_CONNECT':
return AuthenticationType.openidConnect;
}
throw Exception('$this is not known in enum AuthenticationType');
}