<?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 WebChartDescriptionInput
 * The description of a web chart * @property null|ChartOptionsInputInputType $chartOptions = null Gets the chart options
 * @property null|string $id = null The chart description id.
 * @property null|string $title = null The chart description title.
 * @property null|ChartTypeEnum $type = null Gets the chart type
 * @property null|bool $isDefault = null When true, this chart description can be show in overview dashboard as default
 */
final class WebChartDescriptionInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'chartOptions') {
            return new ChartOptionsInputInputType($value);
        }

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

        return $value;
    }
}