code: def from_api_repr(cls, resource, client):
          
          job_id, config = cls._get_resource_config(resource)
          query = config["query"]["query"]
          job = cls(job_id, query, client=client)
          job._set_properties(resource)
          return job
docs: Factory:  construct a job given its API representation
  
          :type resource: dict
          :param resource: dataset job representation returned from the API
  
          :type client: :class:`google.cloud.bigquery.client.Client`
          :param client: Client which holds credentials and project
                         configuration for the dataset.
  
          :rtype: :class:`google.cloud.bigquery.job.QueryJob`
          :returns: Job parsed from ``resource``.