code: public function unSerialize($json_string) {
  		$data = json_decode($json_string,true);
  		
  		foreach ($data as $k => $v) {
  			$this->$k = $v;
  		}
  		
  		return true;
  	}
docs: Unserialize/restore an object state to continue login
  
  @param string $json_string JSON string with values of selected properties