<?php

declare (strict_types=1);
namespace idoit\Module\SyneticsJdisc\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 DiagramLabelPreferenceKeyInput
 * The WEB UI diagram label preference key. * @property null|DiagramEntityIdEnum $diagramEntityId = null The diagram entity id
 * @property null|string $pathFromRoot = null The subtype's hierarchy path
 * @property mixed $subtype = null A subtype of diagram entity
 */
final class DiagramLabelPreferenceKeyInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'diagramEntityId') {
            return new DiagramEntityIdEnum($value);
        }

        return $value;
    }
}