toDataSourceType method

DataSourceType toDataSourceType()

Implementation

DataSourceType toDataSourceType() {
  switch (this) {
    case 'S3':
      return DataSourceType.s3;
    case 'SHAREPOINT':
      return DataSourceType.sharepoint;
    case 'DATABASE':
      return DataSourceType.database;
    case 'SALESFORCE':
      return DataSourceType.salesforce;
    case 'ONEDRIVE':
      return DataSourceType.onedrive;
    case 'SERVICENOW':
      return DataSourceType.servicenow;
    case 'CUSTOM':
      return DataSourceType.custom;
    case 'CONFLUENCE':
      return DataSourceType.confluence;
    case 'GOOGLEDRIVE':
      return DataSourceType.googledrive;
  }
  throw Exception('$this is not known in enum DataSourceType');
}