blob: 76ec62b288b0bf6dff66b39d8184defee9abfb3b [file] [log] [blame]
<?php
// This file is auto-generated, don't edit it. Thanks.
namespace RocketMQ\Eventbridge\SDK\Models;
use AlibabaCloud\Tea\Model;
use RocketMQ\Eventbridge\SDK\Models\ListEventTypesResponseBody;
class ListEventTypesResponse extends Model {
protected $_name = [
'headers' => 'headers',
'statusCode' => 'statusCode',
'body' => 'body',
];
public function validate() {}
public function toMap() {
$res = [];
if (null !== $this->headers) {
$res['headers'] = $this->headers;
}
if (null !== $this->statusCode) {
$res['statusCode'] = $this->statusCode;
}
if (null !== $this->body) {
$res['body'] = null !== $this->body ? $this->body->toMap() : null;
}
return $res;
}
/**
* @param array $map
* @return ListEventTypesResponse
*/
public static function fromMap($map = []) {
$model = new self();
if(isset($map['headers'])){
$model->headers = $map['headers'];
}
if(isset($map['statusCode'])){
$model->statusCode = $map['statusCode'];
}
if(isset($map['body'])){
$model->body = ListEventTypesResponseBody::fromMap($map['body']);
}
return $model;
}
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var ListEventTypesResponseBody
*/
public $body;
}