shop-php/vendor/alibabacloud/ocr-20191230/src/Models/RecognizeDrivingLicenseResponse.php
2024-02-28 17:33:11 +08:00

75 lines
1.7 KiB
PHP

<?php
// This file is auto-generated, don't edit it. Thanks.
namespace AlibabaCloud\SDK\Ocr\V20191230\Models;
use AlibabaCloud\Tea\Model;
class RecognizeDrivingLicenseResponse extends Model
{
/**
* @var string[]
*/
public $headers;
/**
* @var int
*/
public $statusCode;
/**
* @var RecognizeDrivingLicenseResponseBody
*/
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 RecognizeDrivingLicenseResponse
*/
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 = RecognizeDrivingLicenseResponseBody::fromMap($map['body']);
}
return $model;
}
}