<?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 DiagramLabelPreferenceInput
 * The WEB UI diagram label preferences. * @property null|string $expression = null The diagram label expression
 * @property bool $inherit The diagram label inheritance flag
 * @property null|DiagramLabelPreferenceKeyInputInputType $key = null The diagram label preference key
 */
final class DiagramLabelPreferenceInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'key') {
            return new DiagramLabelPreferenceKeyInputInputType($value);
        }

        return $value;
    }
}