'DomainCount', 'domainOnlineCount' => 'DomainOnlineCount', 'endTime' => 'EndTime', 'requestId' => 'RequestId', 'startTime' => 'StartTime', 'topDomains' => 'TopDomains', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->domainCount) { $res['DomainCount'] = $this->domainCount; } if (null !== $this->domainOnlineCount) { $res['DomainOnlineCount'] = $this->domainOnlineCount; } if (null !== $this->endTime) { $res['EndTime'] = $this->endTime; } if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } if (null !== $this->startTime) { $res['StartTime'] = $this->startTime; } if (null !== $this->topDomains) { $res['TopDomains'] = null !== $this->topDomains ? $this->topDomains->toMap() : null; } return $res; } /** * @param array $map * * @return DescribeLiveTopDomainsByFlowResponseBody */ public static function fromMap($map = []) { $model = new self(); if (isset($map['DomainCount'])) { $model->domainCount = $map['DomainCount']; } if (isset($map['DomainOnlineCount'])) { $model->domainOnlineCount = $map['DomainOnlineCount']; } if (isset($map['EndTime'])) { $model->endTime = $map['EndTime']; } if (isset($map['RequestId'])) { $model->requestId = $map['RequestId']; } if (isset($map['StartTime'])) { $model->startTime = $map['StartTime']; } if (isset($map['TopDomains'])) { $model->topDomains = topDomains::fromMap($map['TopDomains']); } return $model; } }