<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Type\InputType;

/**
 * This code is @generated by axtiva/flexible-graphql-php do not edit it
 * PHP representation of graphql type DiagramTemplatePreferencesInput
 * The diagram template preferences. * @property null|bool $allowChanges = null Flag to indicate if max depth for the template might be changed by the user.
 * @property null|int $maxDepth = null The relations max depth to apply for the template.
 * @property null|DiagramTemplateIdEnum $templateId = null The template Id.
 */
final class DiagramTemplatePreferencesInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'templateId') {
            return new DiagramTemplateIdEnum($value);
        }

        return $value;
    }
}