<?php

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

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

use AlibabaCloud\Tea\Model;

class subInstBasicInfo extends Model
{
    /**
     * @example 一食堂
     *
     * @var string
     */
    public $aliasName;

    /**
     * @description This parameter is required.
     *
     * @example 5812
     *
     * @var string
     */
    public $mcc;

    /**
     * @description This parameter is required.
     *
     * @example 食堂
     *
     * @var string
     */
    public $subInstName;

    /**
     * @description This parameter is required.
     *
     * @example 01
     *
     * @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;
    }
}
