Results = []; foreach ($param["Results"] as $key => $value){ $obj = new Result(); $obj->deserialize($value); array_push($this->Results, $obj); } } if (array_key_exists("PersonNum",$param) and $param["PersonNum"] !== null) { $this->PersonNum = $param["PersonNum"]; } if (array_key_exists("FaceModelVersion",$param) and $param["FaceModelVersion"] !== null) { $this->FaceModelVersion = $param["FaceModelVersion"]; } if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) { $this->RequestId = $param["RequestId"]; } } }