<?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 ThycoticSecretServerAccountInput
 * This object contains references an account within the thycotic secret server. * @property null|string $name = null The secret name
 * @property null|ThycoticFolderInputInputType $parentFolder = null The thycotic parent folder.
 * @property mixed $secretId = null The thycotic secret id. This id identifies a login/password within the secret server.
 * @property mixed $templateId = null The thycotic template id.
 * @property null|string $templateName = null The thycotic template name.
 * @property null|ThycoticSecretServerInputInputType $thycoticSecretServer = null The thycotic secret server that this secret belongs to.
 */
final class ThycoticSecretServerAccountInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'parentFolder') {
            return new ThycoticFolderInputInputType($value);
        }

        if ($name === 'thycoticSecretServer') {
            return new ThycoticSecretServerInputInputType($value);
        }

        return $value;
    }
}