<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\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 ScheduledJobInput
 * The schedule job entity * @property mixed $creationTime = null The scheduled job creation time.
 * @property null|DiscoveryJobInputInputType $discoveryJob = null The discovery job haveing this scheduled job. Can be null when the scheduled job does not belong to an entity
 * @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
 */
final class ScheduledJobInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'discoveryJob') {
            return new DiscoveryJobInputInputType($value);
        }

        return $value;
    }
}