123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <?php
- // This file is auto-generated, don't edit it. Thanks.
- namespace AlibabaCloud\SDK\Cloudauth\V20190307\Models\DescribeVerifyResultResponseBody;
- use AlibabaCloud\SDK\Cloudauth\V20190307\Models\DescribeVerifyResultResponseBody\material\idCardInfo;
- use AlibabaCloud\Tea\Model;
- class material extends Model
- {
- /**
- * @var string
- */
- public $faceGlobalUrl;
- /**
- * @var string
- */
- public $faceImageUrl;
- /**
- * @var bool
- */
- public $faceMask;
- /**
- * @var string
- */
- public $faceQuality;
- /**
- * @var idCardInfo
- */
- public $idCardInfo;
- /**
- * @var string
- */
- public $idCardName;
- /**
- * @var string
- */
- public $idCardNumber;
- /**
- * @var string[]
- */
- public $videoUrls;
- protected $_name = [
- 'faceGlobalUrl' => 'FaceGlobalUrl',
- 'faceImageUrl' => 'FaceImageUrl',
- 'faceMask' => 'FaceMask',
- 'faceQuality' => 'FaceQuality',
- 'idCardInfo' => 'IdCardInfo',
- 'idCardName' => 'IdCardName',
- 'idCardNumber' => 'IdCardNumber',
- 'videoUrls' => 'VideoUrls',
- ];
- public function validate()
- {
- }
- public function toMap()
- {
- $res = [];
- if (null !== $this->faceGlobalUrl) {
- $res['FaceGlobalUrl'] = $this->faceGlobalUrl;
- }
- if (null !== $this->faceImageUrl) {
- $res['FaceImageUrl'] = $this->faceImageUrl;
- }
- if (null !== $this->faceMask) {
- $res['FaceMask'] = $this->faceMask;
- }
- if (null !== $this->faceQuality) {
- $res['FaceQuality'] = $this->faceQuality;
- }
- if (null !== $this->idCardInfo) {
- $res['IdCardInfo'] = null !== $this->idCardInfo ? $this->idCardInfo->toMap() : null;
- }
- if (null !== $this->idCardName) {
- $res['IdCardName'] = $this->idCardName;
- }
- if (null !== $this->idCardNumber) {
- $res['IdCardNumber'] = $this->idCardNumber;
- }
- if (null !== $this->videoUrls) {
- $res['VideoUrls'] = $this->videoUrls;
- }
- return $res;
- }
- /**
- * @param array $map
- *
- * @return material
- */
- public static function fromMap($map = [])
- {
- $model = new self();
- if (isset($map['FaceGlobalUrl'])) {
- $model->faceGlobalUrl = $map['FaceGlobalUrl'];
- }
- if (isset($map['FaceImageUrl'])) {
- $model->faceImageUrl = $map['FaceImageUrl'];
- }
- if (isset($map['FaceMask'])) {
- $model->faceMask = $map['FaceMask'];
- }
- if (isset($map['FaceQuality'])) {
- $model->faceQuality = $map['FaceQuality'];
- }
- if (isset($map['IdCardInfo'])) {
- $model->idCardInfo = idCardInfo::fromMap($map['IdCardInfo']);
- }
- if (isset($map['IdCardName'])) {
- $model->idCardName = $map['IdCardName'];
- }
- if (isset($map['IdCardNumber'])) {
- $model->idCardNumber = $map['IdCardNumber'];
- }
- if (isset($map['VideoUrls'])) {
- if (!empty($map['VideoUrls'])) {
- $model->videoUrls = $map['VideoUrls'];
- }
- }
- return $model;
- }
- }
|