'CreateDate', 'expireDate' => 'ExpireDate', 'pageViewCount' => 'PageViewCount', 'shortUrl' => 'ShortUrl', 'shortUrlName' => 'ShortUrlName', 'shortUrlStatus' => 'ShortUrlStatus', 'sourceUrl' => 'SourceUrl', 'uniqueVisitorCount' => 'UniqueVisitorCount', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->createDate) { $res['CreateDate'] = $this->createDate; } if (null !== $this->expireDate) { $res['ExpireDate'] = $this->expireDate; } if (null !== $this->pageViewCount) { $res['PageViewCount'] = $this->pageViewCount; } if (null !== $this->shortUrl) { $res['ShortUrl'] = $this->shortUrl; } if (null !== $this->shortUrlName) { $res['ShortUrlName'] = $this->shortUrlName; } if (null !== $this->shortUrlStatus) { $res['ShortUrlStatus'] = $this->shortUrlStatus; } if (null !== $this->sourceUrl) { $res['SourceUrl'] = $this->sourceUrl; } if (null !== $this->uniqueVisitorCount) { $res['UniqueVisitorCount'] = $this->uniqueVisitorCount; } return $res; } /** * @param array $map * * @return data */ public static function fromMap($map = []) { $model = new self(); if (isset($map['CreateDate'])) { $model->createDate = $map['CreateDate']; } if (isset($map['ExpireDate'])) { $model->expireDate = $map['ExpireDate']; } if (isset($map['PageViewCount'])) { $model->pageViewCount = $map['PageViewCount']; } if (isset($map['ShortUrl'])) { $model->shortUrl = $map['ShortUrl']; } if (isset($map['ShortUrlName'])) { $model->shortUrlName = $map['ShortUrlName']; } if (isset($map['ShortUrlStatus'])) { $model->shortUrlStatus = $map['ShortUrlStatus']; } if (isset($map['SourceUrl'])) { $model->sourceUrl = $map['SourceUrl']; } if (isset($map['UniqueVisitorCount'])) { $model->uniqueVisitorCount = $map['UniqueVisitorCount']; } return $model; } }