<?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 DataElementFilterInput
 * A data field filter * @property null|string $key = null the filter's key
 * @property null|OperatorEnum $operator = null the data field operator
 * @property null|string $string1 = null first field string
 * @property null|string $string1CaseInsensitive = null first field string lower
 * @property null|string $string2 = null second field string
 * @property null|string $string2CaseInsensitive = null second field string lower
 */
final class DataElementFilterInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}