<?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 ReportCsvExportConfiguration
 * Input parameters to generate report export file * @property null|CsvExportConfigInputInputType $exportConfig = null The export configuration for type CSV
 * @property null|ReportConfigInputType $reportConfig = null The report configuration
 */
final class ReportCsvExportConfigurationInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'exportConfig') {
            return new CsvExportConfigInputInputType($value);
        }

        if ($name === 'reportConfig') {
            return new ReportConfigInputType($value);
        }

        return $value;
    }
}