toTrainingDataSourceEnum method

TrainingDataSourceEnum toTrainingDataSourceEnum()

Implementation

TrainingDataSourceEnum toTrainingDataSourceEnum() {
  switch (this) {
    case 'EXTERNAL_EVENTS':
      return TrainingDataSourceEnum.externalEvents;
  }
  throw Exception('$this is not known in enum TrainingDataSourceEnum');
}