<?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 InventoryUserInfoInput
 * User Info * @property mixed $id = null User id
 * @property null|string $login = null User login
 * @property null|string $password = null User password
 * @property null|iterable|InventoryUserGroupInfoInputInputType[] $userGroups = null User Groups where the user belongs
 */
final class InventoryUserInfoInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}