<?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 BiosInput
 * BIOS information * @property null|LicenseInputInputType $license = null The license for a BIOS
 * @property null|string $manufacturer = null The BIOS manufacturer
 * @property null|string $name = null The BIOS name
 * @property mixed $releaseDate = null The BIOS release date.
 * @property null|int $smbiosMajor = null The SMBIOS major version
 * @property null|int $smbiosMinor = null The SMBIOS minor version
 * @property null|bool $uefiSecureBoot = null UEFI Boot: Set to true if UEFI secure boot is enabled.
 * @property null|string $uniqueId = null The BIOS unique id
 * @property null|string $version = null The BIOS version
 */
final class BiosInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'license') {
            return new LicenseInputInputType($value);
        }

        return $value;
    }
}