class_docstr: JobStatusData
class_docstr_tok: ["JobStatusData"]
docstr: Create an instance of JobStatusData from a dict
docstr_tok: ["Create","an","instance","of","JobStatusData","from","a","dict"]
code: def from_dict(cls, obj: dict) -> JobStatusData:
      """Create an instance of JobStatusData from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return JobStatusData.parse_obj(obj)
  
      # raise errors for additional fields in the input
      for _key in obj.keys():
          if _key not in cls.__properties:
              raise ValueError(
                  "Error due to additional fields (not defined in JobStatusData) in the input: "
                  + str(obj)
              )
  
      _obj = JobStatusData.parse_obj(
          {
              "id": obj.get("id"),
              "dataset_id": obj.get("datasetId"),
              "status": obj.get("status"),
              "meta": JobStatusMeta.from_dict(obj.get("meta"))
              if obj.get("meta") is not None
              else None,
              "wait_time_till_next_poll": obj.get(
                  "waitTimeTillNextPoll"
              ),
              "created_at": obj.get("createdAt"),
              "last_modified_at": obj.get("lastModifiedAt"),
              "finished_at": obj.get("finishedAt"),
              "error": obj.get("error"),
              "result": JobStatusDataResult.from_dict(obj.get("result"))
              if obj.get("result") is not None
              else None,
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/job_status_data.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel, Field, StrictInt, StrictStr, conint, constr, validator
  from lightly.openapi_generated.swagger_client.models.job_state import JobState
  from lightly.openapi_generated.swagger_client.models.job_status_data_result import JobStatusDataResult
  from lightly.openapi_generated.swagger_client.models.job_status_meta import JobStatusMeta
label_desc: Use image node_id 7 for calling the JobStatusData obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, JobStatusData