'OwnerId', 'userId' => 'UserId', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->userId) { $res['UserId'] = $this->userId; } return $res; } /** * @param array $map * * @return GetAllCustomTemplatesRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['UserId'])) { $model->userId = $map['UserId']; } return $model; } }