123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- // This file is auto-generated, don't edit it. Thanks.
- namespace AlibabaCloud\SDK\Dysmsapi\V20170525\Models;
- use AlibabaCloud\Tea\Model;
- class CheckMobilesCardSupportResponse extends Model
- {
- /**
- * @var string[]
- */
- public $headers;
- /**
- * @var int
- */
- public $statusCode;
- /**
- * @var CheckMobilesCardSupportResponseBody
- */
- public $body;
- protected $_name = [
- 'headers' => 'headers',
- 'statusCode' => 'statusCode',
- 'body' => 'body',
- ];
- public function validate()
- {
- Model::validateRequired('headers', $this->headers, true);
- Model::validateRequired('statusCode', $this->statusCode, true);
- Model::validateRequired('body', $this->body, true);
- }
- 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 CheckMobilesCardSupportResponse
- */
- 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 = CheckMobilesCardSupportResponseBody::fromMap($map['body']);
- }
- return $model;
- }
- }
|