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

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

        _obj = DockerWorkerConfigV3LightlyOptimizer.parse_obj({
            "lr": obj.get("lr"),
            "weight_decay": obj.get("weightDecay")
        })
        return _obj
Create an instance of DockerWorkerConfigV3LightlyOptimizer from a dict
lightly/openapi_generated/swagger_client/models/docker_worker_config_v3_lightly_optimizer.py