<?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 SshCipherAlgorithmInput
 * A SSH cipher algorithm * @property null|string $name = null The cipher name.
 * @property null|iterable|OperatingSystemInputInputType[] $operatingSystems = null The list of operating systems using this SSH cipher algorithm.
 */
final class SshCipherAlgorithmInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}