<?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 SshPublicPrivateKeyDataInput
 * The SshPublicPrivateKeyData type * @property null|string $description = null The SSH key description
 * @property mixed $id = null The SSH key id
 * @property null|int $lengthInBits = null The SSH key length in bits
 * @property null|string $name = null The SSH key name
 * @property null|string $passphrase = null The SSH key passphrase
 * @property null|string $privateKey = null The SSH key private key
 * @property null|string $publicKey = null The SSH key public key
 * @property null|SshKeyTypeEnum $sshKeyType = null The SSH key type
 */
final class SshPublicPrivateKeyDataInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'sshKeyType') {
            return new SshKeyTypeEnum($value);
        }

        return $value;
    }
}