<?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 ScheduledTaskExecuteActionInput
 * The action associated with the scheduled task * @property null|string $command = null The command to execute this scheduled task
 * @property null|ScheduledTaskInputInputType $scheduledTask = null The action's scheduled task.
 * @property null|DeviceScheduledTaskActionTypeEnum $type = null The action type
 * @property null|string $workingDirectory = null The working directory for the action
 */
final class ScheduledTaskExecuteActionInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'scheduledTask') {
            return new ScheduledTaskInputInputType($value);
        }

        if ($name === 'type') {
            return new DeviceScheduledTaskActionTypeEnum($value);
        }

        return $value;
    }
}