toDataSource method
Implementation
DataSource toDataSource() {
switch (this) {
case 'EVENT':
return DataSource.event;
case 'MODEL_SCORE':
return DataSource.modelScore;
case 'EXTERNAL_MODEL_SCORE':
return DataSource.externalModelScore;
}
throw Exception('$this is not known in enum DataSource');
}