<?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 ScheduledReportExportJobInput
 * Scheduled report export job to network location * @property null|ScheduleActionEnum $action = null The scheduled job action
 * @property mixed $creationTime = null The scheduled job creation time.
 * @property null|string $description = null The scheduled job description
 * @property null|bool $enabled = null The scheduled job enabled flag
 * @property mixed $modificationTime = null The scheduled job modification time.
 * @property null|string $name = null The scheduled job name
 * @property null|ScheduleInputInputType $schedule = null The schedule linked to this scheduled job
 * @property null|ReportNetworkExportJobInputInputType $reportExportJob = null The report export network job having this scheduled job
 */
final class ScheduledReportExportJobInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'action') {
            return new ScheduleActionEnum($value);
        }

        if ($name === 'schedule') {
            return new ScheduleInputInputType($value);
        }

        if ($name === 'reportExportJob') {
            return new ReportNetworkExportJobInputInputType($value);
        }

        return $value;
    }
}