<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vexclusive_1_0\Models;

use AlibabaCloud\SDK\Dingtalk\Vexclusive_1_0\Models\UpdateRealmLicenseRequest\detailList;
use AlibabaCloud\Tea\Model;

class UpdateRealmLicenseRequest extends Model
{
    /**
     * @var detailList[]
     */
    public $detailList;
    protected $_name = [
        'detailList' => 'detailList',
    ];

    public function validate() {}

    public function toMap()
    {
        $res = [];
        if (null !== $this->detailList) {
            $res['detailList'] = [];
            if (null !== $this->detailList && \is_array($this->detailList)) {
                $n = 0;
                foreach ($this->detailList as $item) {
                    $res['detailList'][$n++] = null !== $item ? $item->toMap() : $item;
                }
            }
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return UpdateRealmLicenseRequest
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['detailList'])) {
            if (!empty($map['detailList'])) {
                $model->detailList = [];
                $n = 0;
                foreach ($map['detailList'] as $item) {
                    $model->detailList[$n++] = null !== $item ? detailList::fromMap($item) : $item;
                }
            }
        }

        return $model;
    }
}
