def METHOD_NAME(self, bot, creator):
    json_dict = {
        "invite_link": self.link,
        "creator": creator.to_dict(),
        "creates_join_request": self.creates_join_request,
        "is_primary": self.primary,
        "is_revoked": self.revoked,
    }
    invite_link = ChatInviteLink.de_json(json_dict, bot)
    assert invite_link.api_kwargs == {}
    assert invite_link.invite_link == self.link
    assert invite_link.creator == creator
    assert invite_link.creates_join_request == self.creates_join_request
    assert invite_link.is_primary == self.primary
    assert invite_link.is_revoked == self.revoked