<?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 IP4TransportInput
 * An IP4 transport holding the IP address, subnet mask and hostnames * @property null|iterable|string[] $hostnames = null The transport hostnames.
 * @property mixed $ipAddress = null The transport's IP4 address.
 * @property null|bool $isMainAddress = null A flag that indicates whether this is the device's main IP address.
 * @property null|bool $isRouting = null A flag that indicates whether this transport is routing or not.
 * @property null|IP4NetworkInputInputType $network = null The assigned network for a transport.
 * @property mixed $subnetMask = null The transport's configured IP4 subnet mask.
 */
final class IP4TransportInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'network') {
            return new IP4NetworkInputInputType($value);
        }

        return $value;
    }
}