<?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 WlanWhitelistPatternEntryInput
 * A WLAN whitelist pattern entry * @property null|string $pattern = null The pattern
 * @property null|WlanWhitelistPatternTypeEnum $patternType = null The pattern type
 */
final class WlanWhitelistPatternEntryInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'patternType') {
            return new WlanWhitelistPatternTypeEnum($value);
        }

        return $value;
    }
}