def from_dict(cls, obj: dict) -> DockerWorkerConfigV3Docker:
        """Create an instance of DockerWorkerConfigV3Docker from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return DockerWorkerConfigV3Docker.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 DockerWorkerConfigV3Docker) in the input: " + str(obj))

        _obj = DockerWorkerConfigV3Docker.parse_obj({
            "checkpoint": obj.get("checkpoint"),
            "checkpoint_run_id": obj.get("checkpointRunId"),
            "corruptness_check": DockerWorkerConfigV3DockerCorruptnessCheck.from_dict(obj.get("corruptnessCheck")) if obj.get("corruptnessCheck") is not None else None,
            "datasource": DockerWorkerConfigV3DockerDatasource.from_dict(obj.get("datasource")) if obj.get("datasource") is not None else None,
            "embeddings": obj.get("embeddings"),
            "enable_training": obj.get("enableTraining"),
            "training": DockerWorkerConfigV3DockerTraining.from_dict(obj.get("training")) if obj.get("training") is not None else None,
            "normalize_embeddings": obj.get("normalizeEmbeddings"),
            "num_processes": obj.get("numProcesses"),
            "num_threads": obj.get("numThreads"),
            "output_image_format": obj.get("outputImageFormat"),
            "pretagging": obj.get("pretagging"),
            "pretagging_upload": obj.get("pretaggingUpload"),
            "relevant_filenames_file": obj.get("relevantFilenamesFile"),
            "selected_sequence_length": obj.get("selectedSequenceLength"),
            "upload_report": obj.get("uploadReport"),
            "shutdown_when_job_finished": obj.get("shutdownWhenJobFinished")
        })
        return _obj
Create an instance of DockerWorkerConfigV3Docker from a dict
lightly/openapi_generated/swagger_client/models/docker_worker_config_v3_docker.py