<?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 IPDnsServerConfigurationInput
 * The DNS server configuration for an interface * @property mixed $dnsServerIP4Address = null The DNS server IP4 address.
 * @property null|IP4TransportInputInputType $dnsServerIP4Transport = null The assigned IP4 transport for the DNS server.
 * @property null|string $dnsServerIP6Address = null The DNS server IP6 address.
 * @property null|IP6TransportInputInputType $dnsServerIP6Transport = null The assigned IP6 transport for the DNS server.
 * @property null|int $position = null The location in the DNS server search order.
 */
final class IPDnsServerConfigurationInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'dnsServerIP4Transport') {
            return new IP4TransportInputInputType($value);
        }

        if ($name === 'dnsServerIP6Transport') {
            return new IP6TransportInputInputType($value);
        }

        return $value;
    }
}