toDataSourceStatus method

DataSourceStatus toDataSourceStatus()

Implementation

DataSourceStatus toDataSourceStatus() {
  switch (this) {
    case 'ENABLED':
      return DataSourceStatus.enabled;
    case 'DISABLED':
      return DataSourceStatus.disabled;
  }
  throw Exception('$this is not known in enum DataSourceStatus');
}