toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ExportTaskStatusCode.cancelled:
      return 'CANCELLED';
    case ExportTaskStatusCode.completed:
      return 'COMPLETED';
    case ExportTaskStatusCode.failed:
      return 'FAILED';
    case ExportTaskStatusCode.pending:
      return 'PENDING';
    case ExportTaskStatusCode.pendingCancel:
      return 'PENDING_CANCEL';
    case ExportTaskStatusCode.running:
      return 'RUNNING';
  }
}