<?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 SupportZipParameters
 * Input parameters to generate support Zip * @property null|string $comment = null Comment to identify reason for support zip
 * @property null|iterable|DeviceReferenceInputInputType[] $devices = null List of devices to be included into support zip
 * @property bool $exportECoreProcessorReport Include unknown Intel ecore processor report into support zip
 * @property bool $exportLoggedErrorsReport Include logged exceptions report into support zip
 * @property bool $exportUnknownMdnsDevices Include unknown mDNS devices report into support zip
 * @property bool $exportUnknownPnpDevices Include unknown PNP devices report into support zip
 * @property bool $exportUnknownSnmpDevices Include unknown SNMP devices report into support zip
 * @property bool $exportUnknownUpnpDevices Include unknown UPNP devices report into support zip
 * @property bool $exportUnmappedLenovoPartNumbersReport Include unmapped Lenovo part numbers report into support zip
 */
final class SupportZipParametersInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'devices') {
            return (function($value) {foreach($value as $v) yield ($v === null ? null : new DeviceReferenceInputInputType($v)); })($value);
        }

        return $value;
    }
}