<?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 TableStateInput
 * The table state * @property null|iterable|string[] $columnOrder = null The column order
 * @property null|string $columnWidths = null The widths of the columns
 * @property null|string $filters = null The filters metadata
 * @property null|iterable|string[] $hiddenColumns = null The hidden columns
 * @property null|iterable|MultiSortMetaInputInputType[] $multiSortMeta = null The multi sort metadata
 * @property null|string $sortField = null The single sort field
 * @property null|int $sortOrder = null The single sort order
 * @property null|string $tableWidth = null The width of the table
 */
final class TableStateInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'multiSortMeta') {
            return (function($value) {foreach($value as $v) yield ($v === null ? null : new MultiSortMetaInputInputType($v)); })($value);
        }

        return $value;
    }
}