toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case UploadStatus.initialized:
      return 'INITIALIZED';
    case UploadStatus.processing:
      return 'PROCESSING';
    case UploadStatus.succeeded:
      return 'SUCCEEDED';
    case UploadStatus.failed:
      return 'FAILED';
  }
}