public function toArray()

in Aliyun/Log/Models/Config.php [36:61]


  public function toArray(){
    $resArray = array();
    if($this->filePattern!==null)
        $resArray['filePattern'] = $this->filePattern;
    if($this->key!==null)
        $resArray['key'] = $this->key;
    if($this->localStorage!==null)
        $resArray['localStorage'] = $this->localStorage;
    if($this->logBeginRegex!==null)
        $resArray['logBeginRegex'] = $this->logBeginRegex;
    if($this->logPath!==null)
        $resArray['logPath'] = $this->logPath;
    if($this->logType!==null)
        $resArray['logType'] = $this->logType;
    if($this->regex!==null)
        $resArray['regex'] = $this->regex;
    if($this->timeFormat!==null)
        $resArray['timeFormat'] = $this->timeFormat;
    if($this->filterRegex!==null)
        $resArray['filterRegex'] = $this->filterRegex;
    if($this->filterKey!==null)
        $resArray['filterKey'] = $this->filterKey;
    if($this->topicFormat!==null)
        $resArray['topicFormat'] = $this->topicFormat;
    return $resArray;
  }