<?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 ModuleSlotInput
 * The module slot represents a slot for a module in a device. * @property null|ModuleInputInputType $module = null The module assigned to this slot
 * @property null|string $slotId = null The module slot id.
 * @property null|string $socketDesignation = null The module socket designation
 */
final class ModuleSlotInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'module') {
            return new ModuleInputInputType($value);
        }

        return $value;
    }
}