<?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 CloudItemStatusInput
 * CloudItemStatus * @property null|string $discoveryJobName = null discoveryJobName
 * @property null|string $lastMessage = null lastMessage
 * @property null|string $name = null name
 * @property int $percentage percentage
 * @property null|DiscoveryQueueItemStatusEnum $status = null status
 * @property null|CloudTypeEnum $type = null type
 */
final class CloudItemStatusInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'status') {
            return new DiscoveryQueueItemStatusEnum($value);
        }

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

        return $value;
    }
}