<?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 TableFieldDescriptionInput
 * A description for a field within a table * @property null|FieldDescriptionInputInputType $fieldDescription = null The field description
 * @property null|string $field = null The field name
 * @property null|bool $isResizable = null A flag whether this column is resizable or not
 * @property null|bool $isSortable = null A flag whether this column is sortable
 * @property null|bool $isSticky = null A flag whether this column can be sticky or not
 * @property null|bool $isVisible = null A flag whether this column is visible or not
 */
final class TableFieldDescriptionInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}