toDataSourceType method
Implementation
DataSourceType toDataSourceType() {
switch (this) {
case 'AWS_LAMBDA':
return DataSourceType.awsLambda;
case 'AMAZON_DYNAMODB':
return DataSourceType.amazonDynamodb;
case 'AMAZON_ELASTICSEARCH':
return DataSourceType.amazonElasticsearch;
case 'NONE':
return DataSourceType.none;
case 'HTTP':
return DataSourceType.http;
case 'RELATIONAL_DATABASE':
return DataSourceType.relationalDatabase;
}
throw Exception('$this is not known in enum DataSourceType');
}