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
Create an instance of JobStatusData from a dict
lightly/openapi_generated/swagger_client/models/job_status_data.py