toSourceAccessType method

SourceAccessType toSourceAccessType()

Implementation

SourceAccessType toSourceAccessType() {
  switch (this) {
    case 'BASIC_AUTH':
      return SourceAccessType.basicAuth;
    case 'VPC_SUBNET':
      return SourceAccessType.vpcSubnet;
    case 'VPC_SECURITY_GROUP':
      return SourceAccessType.vpcSecurityGroup;
    case 'SASL_SCRAM_512_AUTH':
      return SourceAccessType.saslScram_512Auth;
    case 'SASL_SCRAM_256_AUTH':
      return SourceAccessType.saslScram_256Auth;
  }
  throw Exception('$this is not known in enum SourceAccessType');
}