<?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 ManageEngineResourceInput
 * A resource within the ManageEngine PMP password management system * @property null|iterable|ManageEnginePMPAccountInputInputType[] $accounts = null The list of ManageEngine PMP accounts assigned to this resource
 * @property mixed $id = null The Resource ID
 * @property null|string $name = null The folder name
 */
final class ManageEngineResourceInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}