<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vproject_1_0\Models\SearchOranizationCustomfieldResponseBody\result;

use AlibabaCloud\Tea\Model;

class advancedCustomField extends Model
{
    /**
     * @example 63a5301e420637003f5dxxxx
     *
     * @var string
     */
    public $advancedCustomFieldId;

    /**
     * @example 所思文档
     *
     * @var string
     */
    public $name;

    /**
     * @var string
     */
    public $objectType;
    protected $_name = [
        'advancedCustomFieldId' => 'advancedCustomFieldId',
        'name' => 'name',
        'objectType' => 'objectType',
    ];

    public function validate() {}

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

        return $res;
    }

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

        return $model;
    }
}
