code: public function deserializeReturnValue($type, $data)
      {
          $jobType = $this->registry->get($type);
  
          return $this->serializer->deserialize($data, $jobType->getReturnType(), 'json', $this->getResponseDeserializationContext($jobType));
      }
docs: Deserializes the return of a job.
  
  @param string $type The job type
  @param string $data
  @return mixed