<?php

// This file is auto-generated, don't edit it. Thanks.

namespace AlibabaCloud\SDK\Dingtalk\Vcard_1_0\Models\CreateCardRequest\imSingleOpenSpaceModel;

use AlibabaCloud\Tea\Model;

class searchSupport extends Model
{
    /**
     * @description 【条件必填】供消息展示与搜索的字段
     * 【注意】最大限制200个字符，超过存储截断200
     * @var string
     */
    public $searchDesc;

    /**
     * @description 类型的icon，供搜索展示使用
     *
     * @var string
     */
    public $searchIcon;

    /**
     * @description 卡片类型名
     *
     * @var string
     */
    public $searchTypeName;
    protected $_name = [
        'searchDesc'     => 'searchDesc',
        'searchIcon'     => 'searchIcon',
        'searchTypeName' => 'searchTypeName',
    ];

    public function validate()
    {
    }

    public function toMap()
    {
        $res = [];
        if (null !== $this->searchDesc) {
            $res['searchDesc'] = $this->searchDesc;
        }
        if (null !== $this->searchIcon) {
            $res['searchIcon'] = $this->searchIcon;
        }
        if (null !== $this->searchTypeName) {
            $res['searchTypeName'] = $this->searchTypeName;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return searchSupport
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['searchDesc'])) {
            $model->searchDesc = $map['searchDesc'];
        }
        if (isset($map['searchIcon'])) {
            $model->searchIcon = $map['searchIcon'];
        }
        if (isset($map['searchTypeName'])) {
            $model->searchTypeName = $map['searchTypeName'];
        }

        return $model;
    }
}
