<?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 TreeStateInput
 * The tree state. * @property null|iterable|string[] $expandedNodes = null The keys of the expanded nodes of the tree.
 * @property null|iterable|string[] $selectedNodes = null The keys of the selected nodes of the tree.
 * @property null|TreeModeEnum $treeMode = null The mode of the tree.
 */
final class TreeStateInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'treeMode') {
            return new TreeModeEnum($value);
        }

        return $value;
    }
}