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

62 lines
1.3 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Live\V20161101\Models;
use AlibabaCloud\Tea\Model;
class AddDRMCertificateResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var AddDRMCertificateResponseBody
*/
public $body;
protected $_name = [
'headers' => 'headers',
'body' => 'body',
];
public function validate()
{
Model::validateRequired('headers', $this->headers, true);
Model::validateRequired('body', $this->body, true);
}
public function toMap()
{
$res = [];
if (null !== $this->headers) {
$res['headers'] = $this->headers;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
}
return $res;
}
/**
* @param array $map
*
* @return AddDRMCertificateResponse
*/
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['headers'])) {
$model->headers = $map['headers'];
}
if (isset($map['body'])) {
$model->body = AddDRMCertificateResponseBody::fromMap($map['body']);
}
return $model;
}
}