<?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 DiagramFilterOptionInput
 * A diagram entity filter option * @property null|FieldDescriptionInputInputType $filterField = null The filter option filter field
 * @property null|string $name = null The filter option name
 * @property null|OperatorEnum $operator = null The filter operator
 */
final class DiagramFilterOptionInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

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

        return $value;
    }
}