<?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 CyberarkGroupInput
 * This cyberark group. * @property null|iterable|CyberarkAccountInputInputType[] $accounts = null This cyberark group accounts.
 * @property null|string $id = null This cyberark group id.
 * @property null|string $name = null This cyberark group name.
 */
final class CyberarkGroupInputInputType 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 CyberarkAccountInputInputType($v)); })($value);
        }

        return $value;
    }
}