<?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 TableReportConfigInput
 * The table report configuration (for legacy code) * @property null|bool $caseSensitive = null The case-sensitive flag
 * @property null|string $filterValue = null The filter value
 * @property null|bool $invertedFilter = null Is the filter inverted
 * @property null|FieldDescriptionInputInputType $sortColumn = null The sort column
 * @property null|SortOrderEnum $sortOrder = null The sort order
 */
final class TableReportConfigInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        if ($name === 'sortOrder') {
            return new SortOrderEnum($value);
        }

        return $value;
    }
}