<?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 CloudApiKeyInput
 * This object contains information about a CloudApiKey object. * @property null|string $clientId = null The client id of the CloudApiKey object.
 * @property null|string $clientSecret = null The client server of the CloudApiKey object.
 * @property null|CloudTypeEnum $cloudType = null The cloud type for the CloudApiKey object.
 * @property null|string $comment = null The comment for the CloudApiKey object.
 * @property null|string $id = null The internal id this entity. Note that the id might change when the entity gets deleted and recreated.
 * @property null|string $tenantId = null The tenant id of the CloudApiKey object.
 */
final class CloudApiKeyInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}