<?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 DiagramEntityFilterInput
 * A diagram entity filter * @property null|bool $enabled = null Flag to indicate if the filter is to be applied
 * @property null|string $fieldId = null The filter field id
 * @property null|bool $ignoreCase = null Flag to indicate if the filter application will ignore case
 * @property null|OperatorEnum $operator = null The filter operator
 * @property null|iterable $values = null The filter values
 */
final class DiagramEntityFilterInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'operator') {
            return new OperatorEnum($value);
        }

        return $value;
    }
}