<?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 SSHAccountInput
 * The ssh account entity * @property null|string $account = null The ssh account login.
 * @property null|AccountTypeEnum $accountType = null The ssh account type.
 * @property mixed $creationTime = null The creation time of this entity.
 * @property mixed $modificationTime = null The modification time of this entity.
 * @property null|SSHKeyInputInputType $sshKey = null The ssh account key id.
 */
final class SSHAccountInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'accountType') {
            return new AccountTypeEnum($value);
        }

        if ($name === 'sshKey') {
            return new SSHKeyInputInputType($value);
        }

        return $value;
    }
}