<?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 DiskPartitionInput
 * A partition on a physical disk. * @property null|string $name = null The partition name.
 * @property mixed $size = null The disk partition size in KB.
 * @property null|DiskPartitionTypeEnum $type = null The partition type.
 * @property null|string $typeString = null The partition type as a string as reported by the device
 */
final class DiskPartitionInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'type') {
            return new DiskPartitionTypeEnum($value);
        }

        return $value;
    }
}