<?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 InventoryUserInput
 * User * @property mixed $id = null Member id
 * @property null|string $login = null User login
 * @property null|string $name = null Group name
 * @property null|iterable|InventoryPermissionsGroupInputInputType[] $permissionsGroups = null Permissions Groups assigned to this user or user group member
 * @property null|string $uniqueId = null Unique id
 */
final class InventoryUserInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}