<?php

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

namespace AlibabaCloud\SDK\Dingtalk\Vyida_1_0\Models;

use AlibabaCloud\Tea\Model;

class SavePrintTplDetailInfoRequest extends Model
{
    /**
     * @description This parameter is required.
     *
     * @example 123456
     *
     * @var string
     */
    public $appType;

    /**
     * @var string
     */
    public $description;

    /**
     * @var string
     */
    public $fileNameConfig;

    /**
     * @description This parameter is required.
     *
     * @example abc
     *
     * @var string
     */
    public $formUuid;

    /**
     * @example 123456
     *
     * @var int
     */
    public $formVersion;

    /**
     * @example 123456
     *
     * @var string
     */
    public $setting;

    /**
     * @example 123456
     *
     * @var int
     */
    public $templateId;

    /**
     * @var string
     */
    public $title;

    /**
     * @description This parameter is required.
     *
     * @example 123456
     *
     * @var string
     */
    public $userId;

    /**
     * @example 123456
     *
     * @var string
     */
    public $vm;
    protected $_name = [
        'appType' => 'appType',
        'description' => 'description',
        'fileNameConfig' => 'fileNameConfig',
        'formUuid' => 'formUuid',
        'formVersion' => 'formVersion',
        'setting' => 'setting',
        'templateId' => 'templateId',
        'title' => 'title',
        'userId' => 'userId',
        'vm' => 'vm',
    ];

    public function validate() {}

    public function toMap()
    {
        $res = [];
        if (null !== $this->appType) {
            $res['appType'] = $this->appType;
        }
        if (null !== $this->description) {
            $res['description'] = $this->description;
        }
        if (null !== $this->fileNameConfig) {
            $res['fileNameConfig'] = $this->fileNameConfig;
        }
        if (null !== $this->formUuid) {
            $res['formUuid'] = $this->formUuid;
        }
        if (null !== $this->formVersion) {
            $res['formVersion'] = $this->formVersion;
        }
        if (null !== $this->setting) {
            $res['setting'] = $this->setting;
        }
        if (null !== $this->templateId) {
            $res['templateId'] = $this->templateId;
        }
        if (null !== $this->title) {
            $res['title'] = $this->title;
        }
        if (null !== $this->userId) {
            $res['userId'] = $this->userId;
        }
        if (null !== $this->vm) {
            $res['vm'] = $this->vm;
        }

        return $res;
    }

    /**
     * @param array $map
     *
     * @return SavePrintTplDetailInfoRequest
     */
    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['appType'])) {
            $model->appType = $map['appType'];
        }
        if (isset($map['description'])) {
            $model->description = $map['description'];
        }
        if (isset($map['fileNameConfig'])) {
            $model->fileNameConfig = $map['fileNameConfig'];
        }
        if (isset($map['formUuid'])) {
            $model->formUuid = $map['formUuid'];
        }
        if (isset($map['formVersion'])) {
            $model->formVersion = $map['formVersion'];
        }
        if (isset($map['setting'])) {
            $model->setting = $map['setting'];
        }
        if (isset($map['templateId'])) {
            $model->templateId = $map['templateId'];
        }
        if (isset($map['title'])) {
            $model->title = $map['title'];
        }
        if (isset($map['userId'])) {
            $model->userId = $map['userId'];
        }
        if (isset($map['vm'])) {
            $model->vm = $map['vm'];
        }

        return $model;
    }
}
