<?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 $comment = null The account comment.
 * @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 $name = null The secret name
 * @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.
 * @property null|AccountTypeEnum $type = null The account type.
 * @property null|string $label = null The account label
 * @property null|string $reference = null The account unique reference
 */
final class ThycoticSecretServerAccountInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

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

        return $value;
    }
}