toUploadStatus method
Implementation
UploadStatus toUploadStatus() {
switch (this) {
case 'INITIALIZED':
return UploadStatus.initialized;
case 'PROCESSING':
return UploadStatus.processing;
case 'SUCCEEDED':
return UploadStatus.succeeded;
case 'FAILED':
return UploadStatus.failed;
}
throw Exception('$this is not known in enum UploadStatus');
}