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

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

        _obj = DockerWorkerConfigV3Lightly.parse_obj({
            "seed": obj.get("seed"),
            "checkpoint_callback": DockerWorkerConfigV3LightlyCheckpointCallback.from_dict(obj.get("checkpointCallback")) if obj.get("checkpointCallback") is not None else None,
            "loader": DockerWorkerConfigV3LightlyLoader.from_dict(obj.get("loader")) if obj.get("loader") is not None else None,
            "model": DockerWorkerConfigV3LightlyModel.from_dict(obj.get("model")) if obj.get("model") is not None else None,
            "trainer": DockerWorkerConfigV3LightlyTrainer.from_dict(obj.get("trainer")) if obj.get("trainer") is not None else None,
            "criterion": DockerWorkerConfigV3LightlyCriterion.from_dict(obj.get("criterion")) if obj.get("criterion") is not None else None,
            "optimizer": DockerWorkerConfigV3LightlyOptimizer.from_dict(obj.get("optimizer")) if obj.get("optimizer") is not None else None,
            "collate": DockerWorkerConfigV3LightlyCollate.from_dict(obj.get("collate")) if obj.get("collate") is not None else None
        })
        return _obj
Create an instance of DockerWorkerConfigV3Lightly from a dict
lightly/openapi_generated/swagger_client/models/docker_worker_config_v3_lightly.py