<?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 MeasurementJobDetailsInput
 * MeasurementJobDetails * @property null|string $device = null device
 * @property null|string $jobName = null jobName
 * @property null|MeasurementJobStatusEnum $jobStatus = null jobStatus
 * @property null|MeasureAggregateTypeEnum $jobType = null jobType
 * @property mixed $nextTriggeredTime = null Get next trigger time in UTC zone
 */
final class MeasurementJobDetailsInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'jobStatus') {
            return new MeasurementJobStatusEnum($value);
        }

        if ($name === 'jobType') {
            return new MeasureAggregateTypeEnum($value);
        }

        return $value;
    }
}