<?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 LogMessageInput
 * The log message * @property null|LogLevelEnum $level = null The log level
 * @property null|string $payload = null The log message payload
 * @property null|iterable|string[] $tags = null The message tags
 * @property mixed $timestamp = null The log message timestamp in UTC
 */
final class LogMessageInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'level') {
            return new LogLevelEnum($value);
        }

        return $value;
    }
}