<?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 SnmpCommunityInput
 * An account object for the SNMPv3 community containing the community string and the comment. * @property null|string $comment = null The SNMP community comment.
 * @property null|string $snmpCommunity = null The SNMP community string.
 * @property null|AccountTypeEnum $type = null The account's type.
 * @property null|string $reference = null The account's reference.
 */
final class SnmpCommunityInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'type') {
            return new AccountTypeEnum($value);
        }

        return $value;
    }
}