toDataSource method

DataSource toDataSource()

Implementation

DataSource toDataSource() {
  switch (this) {
    case 'AGENT':
      return DataSource.agent;
  }
  throw Exception('$this is not known in enum DataSource');
}