<?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 WebUIPreferencesInput
 * The WEB UI user preferences. * @property null|DateFormatEnum $dateFormat = null The date format used for timestamps
 * @property null|UIDensityEnum $density = null The user interface density.
 * @property null|LogLevelEnum $logLevel = null The log level
 * @property null|UIThemeEnum $theme = null The user interface theme.
 */
final class WebUIPreferencesInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'dateFormat') {
            return new DateFormatEnum($value);
        }

        if ($name === 'density') {
            return new UIDensityEnum($value);
        }

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

        if ($name === 'theme') {
            return new UIThemeEnum($value);
        }

        return $value;
    }
}