TaskSystem/vendor/alibabacloud/live-20161101/src/Models/GetAllCustomTemplatesRequest.php
2023-10-17 10:24:59 +08:00

60 lines
1.1 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Live\V20161101\Models;
use AlibabaCloud\Tea\Model;
class GetAllCustomTemplatesRequest extends Model
{
/**
* @var int
*/
public $ownerId;
/**
* @var string
*/
public $userId;
protected $_name = [
'ownerId' => '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;
}
}