<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vfinance_1_0\Models\ConsultCreateSubInstitutionRequest;

use AlibabaCloud\Tea\Model;

class subInstBasicInfo extends Model
{
    /**
     * @description 别名
     *
     * @var string
     */
    public $aliasName;

    /**
     * @description 机构识别码
     *
     * @var string
     */
    public $mcc;

    /**
     * @description 名称
     *
     * @var string
     */
    public $subInstName;

    /**
     * @description 类型
     *
     * @var string
     */
    public $type;
    protected $_name = [
        'aliasName'   => 'aliasName',
        'mcc'         => 'mcc',
        'subInstName' => 'subInstName',
        'type'        => 'type',
    ];

    public function validate()
    {
    }

    public function toMap()
    {
        $res = [];
        if (null !== $this->aliasName) {
            $res['aliasName'] = $this->aliasName;
        }
        if (null !== $this->mcc) {
            $res['mcc'] = $this->mcc;
        }
        if (null !== $this->subInstName) {
            $res['subInstName'] = $this->subInstName;
        }
        if (null !== $this->type) {
            $res['type'] = $this->type;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return subInstBasicInfo
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['aliasName'])) {
            $model->aliasName = $map['aliasName'];
        }
        if (isset($map['mcc'])) {
            $model->mcc = $map['mcc'];
        }
        if (isset($map['subInstName'])) {
            $model->subInstName = $map['subInstName'];
        }
        if (isset($map['type'])) {
            $model->type = $map['type'];
        }

        return $model;
    }
}
