<?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 SOTIMobiControlDeviceGroupsInput
 * A device group within the SOTI MobiControl. * @property null|string $name = null The device group name.
 * @property mixed $parentId = null The parent ID of the SOTI MobiControl device group.
 * @property null|string $parentReferenceUniqueId = null Temporary field used during discovery to store the referenceId of the parent group. Not stored in the database.
 * @property null|string $path = null The full path of the SOTI MobiControl device group.
 * @property null|string $referenceId = null The device group unique ID.
 * @property null|iterable|SOTIMobiControlDeviceGroupsInputInputType[] $subDeviceGroups = null The list of SOTI MobiControl subDevice groups.
 * @property null|string $tenantId = null The tenant account that has access to SOTI MobiControl API.
 */
final class SOTIMobiControlDeviceGroupsInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}