<?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 ChartConfigurationInput
 * A user chart configuration. * @property null|string $chartDescription = null Gets the chart description
 * @property null|string $chartKey = null The chart key for this configuration.
 * @property null|bool $isHidden = null When true, the chart is not visible
 * @property null|BuiltInReportEnum $report = null The report for this configuration.
 */
final class ChartConfigurationInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'report') {
            return new BuiltInReportEnum($value);
        }

        return $value;
    }
}