<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vdatacenter_1_0\Models\QueryGeneralDataServiceBatchResponseBody;

use AlibabaCloud\Tea\Model;

class metaList extends Model
{
    /**
     * @description This parameter is required.
     *
     * @var string
     */
    public $fieldDesc;

    /**
     * @description This parameter is required.
     *
     * @var string
     */
    public $fieldId;

    /**
     * @description This parameter is required.
     *
     * @var string
     */
    public $fieldName;

    /**
     * @description This parameter is required.
     *
     * @var string
     */
    public $fieldType;
    protected $_name = [
        'fieldDesc' => 'fieldDesc',
        'fieldId' => 'fieldId',
        'fieldName' => 'fieldName',
        'fieldType' => 'fieldType',
    ];

    public function validate() {}

    public function toMap()
    {
        $res = [];
        if (null !== $this->fieldDesc) {
            $res['fieldDesc'] = $this->fieldDesc;
        }
        if (null !== $this->fieldId) {
            $res['fieldId'] = $this->fieldId;
        }
        if (null !== $this->fieldName) {
            $res['fieldName'] = $this->fieldName;
        }
        if (null !== $this->fieldType) {
            $res['fieldType'] = $this->fieldType;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return metaList
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['fieldDesc'])) {
            $model->fieldDesc = $map['fieldDesc'];
        }
        if (isset($map['fieldId'])) {
            $model->fieldId = $map['fieldId'];
        }
        if (isset($map['fieldName'])) {
            $model->fieldName = $map['fieldName'];
        }
        if (isset($map['fieldType'])) {
            $model->fieldType = $map['fieldType'];
        }

        return $model;
    }
}
