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

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

        _obj = DockerWorkerConfigV3LightlyLoader.parse_obj({
            "batch_size": obj.get("batchSize"),
            "shuffle": obj.get("shuffle"),
            "num_workers": obj.get("numWorkers"),
            "drop_last": obj.get("dropLast")
        })
        return _obj
Create an instance of DockerWorkerConfigV3LightlyLoader from a dict
lightly/openapi_generated/swagger_client/models/docker_worker_config_v3_lightly_loader.py