code: def from_api_repr(cls, resource, client):
          
          job_ref_properties = resource.get("jobReference", {"projectId": client.project})
          job_ref = _JobReference._from_api_repr(job_ref_properties)
          job = cls(job_ref, client)
          # Populate the job reference with the project, even if it has been
          # redacted, because we know it should equal that of the request.
          resource["jobReference"] = job_ref_properties
          job._properties = resource
          return job
docs: Construct an UnknownJob from the JSON representation.
  
          Args:
              resource (dict): JSON representation of a job.
              client (google.cloud.bigquery.client.Client):
                  Client connected to BigQuery API.
  
          Returns:
              UnknownJob: Job corresponding to the resource.