toDataSource method
Implementation
DataSource toDataSource() {
switch (this) {
case 'FLOW_LOGS':
return DataSource.flowLogs;
case 'CLOUD_TRAIL':
return DataSource.cloudTrail;
case 'DNS_LOGS':
return DataSource.dnsLogs;
case 'S3_LOGS':
return DataSource.s3Logs;
}
throw Exception('$this is not known in enum DataSource');
}