<?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 DiscoveryCycleStatusInput
 * The Discovery Job Cycle Status * @property null|string $description = null The description of the job
 * @property null|bool $enabled = null The state of the job.
 * @property mixed $id = null The id of the Job
 * @property null|string $name = null The name of the job
 * @property null|TaskStatusEnum $status = null The task status of the job
 * @property mixed $lastFinishedAt = null The date time of the last finish of the job
 * @property mixed $lastStartedAt = null The date time of the last start of the job
 * @property mixed $nextSchedule = null The date time of the next schedule of the job
 */
final class DiscoveryCycleStatusInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'status') {
            return new TaskStatusEnum($value);
        }

        return $value;
    }
}