<?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 DiagramLabelOptionInput
 * A diagram entity label option * @property null|DiagramLabelDescriptionEnum $description = null The label option description
 * @property null|string $displayName = null The label option display name
 * @property bool $isDefault The label option default flag
 * @property null|string $name = null The label option name
 */
final class DiagramLabelOptionInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'description') {
            return new DiagramLabelDescriptionEnum($value);
        }

        return $value;
    }
}