<?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 ScheduledTaskMessageActionInput
 * The action associated with the scheduled task * @property null|string $body = null The message body
 * @property null|ScheduledTaskInputInputType $scheduledTask = null The action's scheduled task.
 * @property null|string $title = null The message title
 * @property null|DeviceScheduledTaskActionTypeEnum $type = null The action type
 */
final class ScheduledTaskMessageActionInputInputType 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;
    }
}