restore object from url query string