<?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 SSHKeyInput
 * The ssh key entity * @property mixed $creationTime = null The creation time of this entity.
 * @property null|string $description = null The ssh key description.
 * @property null|SshKeyTypeEnum $keyType = null The ssh public key.
 * @property null|int $lengthInBits = null The ssh key length in bits.
 * @property mixed $modificationTime = null The modification time of this entity.
 * @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 private key.
 * @property null|string $publicKey = null The ssh public key.
 */
final class SSHKeyInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

        return $value;
    }
}