public function toArray()

in Aliyun/Log/Models/MachineGroup.php [80:100]


    public function toArray(){
      $format_array = array();
      if($this->groupName!==null)
        $format_array['groupName'] = $this->groupName;
      if($this->groupType!==null)
        $format_array['groupType'] = $this->groupType;
      if($this->groupAttribute!==null)
        $format_array['groupAttribute'] = $this->groupAttribute->toArray();
      if($this->machineList!==null){
        $mlArr = array();
        foreach($this->machineList as $value){
            $mlArr[] = $value->toArray();
        }
        $format_array['machineList'] = $mlArr;
      }  
      if($this->createTime!==null)
        $format_array['createTime'] = $this->createTime;
      if($this->lastModifyTime!==null)
        $format_array['lastModifyTime'] = $this->lastModifyTime;
      return $format_array;
    }