<?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 SoftwareMeteringFilterValueInput
 * A software metering filter value * @property null|SoftwareMeteringFilterFieldEnum $fieldName = null The filter value field name
 * @property null|bool $ignoreCase = null The filter value ignore case flag
 * @property null|SoftwareMeteringOperatorEnum $operator = null The filter value operator
 * @property null|SoftwareMeteringTemplateTypeEnum $type = null The filter value type
 * @property null|string $value1 = null The filter value1
 * @property null|string $value2 = null The filter value2
 */
final class SoftwareMeteringFilterValueInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'fieldName') {
            return new SoftwareMeteringFilterFieldEnum($value);
        }

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

        if ($name === 'type') {
            return new SoftwareMeteringTemplateTypeEnum($value);
        }

        return $value;
    }
}