<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vlink_1_0\Models\ListAccountResponseBody;

use AlibabaCloud\Tea\Model;

class result extends Model
{
    /**
     * @description 服务窗帐号ID
     *
     * @var string
     */
    public $accountId;

    /**
     * @description 服务窗名称
     *
     * @var string
     */
    public $accountName;
    protected $_name = [
        'accountId'   => 'accountId',
        'accountName' => 'accountName',
    ];

    public function validate()
    {
    }

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

        return $res;
    }

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

        return $model;
    }
}
