<?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 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
 * @property null|DeviceScheduledTaskActionTypeEnum $type = null The action type
 */
final class ScheduledTaskEmailActionInputInputType 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;
    }
}