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