toDataSourceSyncJobStatus method
Implementation
DataSourceSyncJobStatus toDataSourceSyncJobStatus() {
switch (this) {
case 'FAILED':
return DataSourceSyncJobStatus.failed;
case 'SUCCEEDED':
return DataSourceSyncJobStatus.succeeded;
case 'SYNCING':
return DataSourceSyncJobStatus.syncing;
case 'INCOMPLETE':
return DataSourceSyncJobStatus.incomplete;
case 'STOPPING':
return DataSourceSyncJobStatus.stopping;
case 'ABORTED':
return DataSourceSyncJobStatus.aborted;
case 'SYNCING_INDEXING':
return DataSourceSyncJobStatus.syncingIndexing;
}
throw Exception('$this is not known in enum DataSourceSyncJobStatus');
}