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