<?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 ChartOptionsInput
 * The chart options * @property null|FilterOptionsInputInputType $filterOptions = null The chart filter options
 * @property null|ChartLegendOptionsInputInputType $legendOptions = null The chart legend options
 * @property null|LimitOptionsInputInputType $limitOptions = null The chart limit options
 * @property null|ChartTitleOptionsInputInputType $titleOptions = null The chart title options
 * @property null|bool $supportsLegend = null When true, the chart supports a legend, otherwise false
 */
final class ChartOptionsInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'filterOptions') {
            return new FilterOptionsInputInputType($value);
        }

        if ($name === 'legendOptions') {
            return new ChartLegendOptionsInputInputType($value);
        }

        if ($name === 'limitOptions') {
            return new LimitOptionsInputInputType($value);
        }

        if ($name === 'titleOptions') {
            return new ChartTitleOptionsInputInputType($value);
        }

        return $value;
    }
}