<?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 FieldFilterInput
 * A filter used to filter reports by criterias * @property mixed $displayValue = null A display value in case the filter to display in the UI when the filterValue is just a database id or some other internal value
 * @property null|FieldDescriptionInputInputType $fieldDescription = null The field description for this filter
 * @property mixed $filterValue = null The filter value
 */
final class FieldFilterInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'fieldDescription') {
            return new FieldDescriptionInputInputType($value);
        }

        return $value;
    }
}