<?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 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 in the support zip
 * @property bool $exportLicense Include license in the support zip
 * @property bool $exportLoggedErrorsReport Include logged exceptions report in the support zip
 * @property bool $exportLogs Include logs in the support zip
 * @property bool $exportSnmpWalksForSnmpDevices Include SNMP walks for SNMP devices
 * @property bool $exportTroubleshootingReports Include troubleshooting reports in the support zip
 * @property bool $exportUnknownXyzItems Include all unknown items reports (like unknown SNMP device, unknown PNP devices, etc.
 */
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;
    }
}