<?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 MemoryModuleInput
 * The memory module represents a memory module within a memory module slot on the mainboard. * @property null|string $manufacturer = null The memory module manufacturer.
 * @property null|MemoryTypeEnum $memoryType = null The memory module's type
 * @property null|string $model = null The memory module model.
 * @property null|string $serialNumber = null The memory module serial number.
 * @property mixed $size = null The memory module size in MB.
 * @property mixed $speed = null The memory module speed in Hz.
 */
final class MemoryModuleInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'memoryType') {
            return new MemoryTypeEnum($value);
        }

        return $value;
    }
}