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

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

        _obj = WorkerInformation.parse_obj({
            "build_time": obj.get("buildTime"),
            "build_version": obj.get("buildVersion")
        })
        return _obj
Create an instance of WorkerInformation from a dict
lightly/openapi_generated/swagger_client/models/worker_information.py