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

        if not isinstance(obj, dict):
            return Consent.parse_obj(obj)

        _obj = Consent.parse_obj({
            "accepted_newsletter": obj.get("acceptedNewsletter"),
            "accepted_terms_date": obj.get("acceptedTermsDate")
        })
        # store additional fields in additional_properties
        for _key in obj.keys():
            if _key not in cls.__properties:
                _obj.additional_properties[_key] = obj.get(_key)

        return _obj
Create an instance of Consent from a dict
lightly/openapi_generated/swagger_client/models/consent.py