toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case UploadStatus.inProgress:
      return 'IN_PROGRESS';
    case UploadStatus.succeeded:
      return 'SUCCEEDED';
    case UploadStatus.failed:
      return 'FAILED';
  }
}