'OwnerId', 'resourceOwnerAccount' => 'ResourceOwnerAccount', 'resourceOwnerId' => 'ResourceOwnerId', 'prodCode' => 'ProdCode', 'shortUrl' => 'ShortUrl', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->resourceOwnerAccount) { $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount; } if (null !== $this->resourceOwnerId) { $res['ResourceOwnerId'] = $this->resourceOwnerId; } if (null !== $this->prodCode) { $res['ProdCode'] = $this->prodCode; } if (null !== $this->shortUrl) { $res['ShortUrl'] = $this->shortUrl; } return $res; } /** * @param array $map * * @return QueryShortUrlRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['ResourceOwnerAccount'])) { $model->resourceOwnerAccount = $map['ResourceOwnerAccount']; } if (isset($map['ResourceOwnerId'])) { $model->resourceOwnerId = $map['ResourceOwnerId']; } if (isset($map['ProdCode'])) { $model->prodCode = $map['ProdCode']; } if (isset($map['ShortUrl'])) { $model->shortUrl = $map['ShortUrl']; } return $model; } }