toDataSourceStatus method

DataSourceStatus toDataSourceStatus()

Implementation

DataSourceStatus toDataSourceStatus() {
  switch (this) {
    case 'CREATING':
      return DataSourceStatus.creating;
    case 'DELETING':
      return DataSourceStatus.deleting;
    case 'FAILED':
      return DataSourceStatus.failed;
    case 'UPDATING':
      return DataSourceStatus.updating;
    case 'ACTIVE':
      return DataSourceStatus.active;
  }
  throw Exception('$this is not known in enum DataSourceStatus');
}