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