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

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

        _obj = ProfileMeData.parse_obj({
            "id": obj.get("id"),
            "user_type": obj.get("userType"),
            "email": obj.get("email"),
            "nickname": obj.get("nickname"),
            "name": obj.get("name"),
            "given_name": obj.get("givenName"),
            "family_name": obj.get("familyName"),
            "token": obj.get("token"),
            "created_at": obj.get("createdAt"),
            "teams": [TeamBasicData.from_dict(_item) for _item in obj.get("teams")] if obj.get("teams") is not None else None,
            "settings": ProfileMeDataSettings.from_dict(obj.get("settings")) if obj.get("settings") is not None else None,
            "onboarding": obj.get("onboarding")
        })
        return _obj
Create an instance of ProfileMeData from a dict
lightly/openapi_generated/swagger_client/models/profile_me_data.py