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,
        "expire_date": to_timestamp(self.expire_date),
        "member_limit": self.member_limit,
        "name": self.name,
        "pending_join_request_count": str(self.pending_join_request_count),
    }
    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
    assert abs(invite_link.expire_date - self.expire_date) < datetime.timedelta(seconds=1)
    assert to_timestamp(invite_link.expire_date) == to_timestamp(self.expire_date)
    assert invite_link.member_limit == self.member_limit
    assert invite_link.name == self.name
    assert invite_link.pending_join_request_count == self.pending_join_request_count