<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\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 IP4DHCPConfigurationInput
 * The DHCP configuration for an interface * @property null|string $dhcpServerIP4Address = null The dhcp servers's IP4 address.
 * @property null|IP4TransportInputInputType $dhcpServerIP4Transport = null The IP4 transport object of the DHCP server (if the DHCP server has been scanned).
 * @property mixed $leaseExpires = null The time when the DHCP lease will expire.
 * @property mixed $leaseObtained = null The time when the DHCP lease was obtained.
 */
final class IP4DHCPConfigurationInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}