<?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 ScheduledTaskEmailActionInput
 * The action associated with the scheduled task * @property null|string $receiver = null The email receiver
 * @property null|ScheduledTaskInputInputType $scheduledTask = null The action's scheduled task.
 * @property null|string $subject = null The email subject
 */
final class ScheduledTaskEmailActionInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}