<?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 PasswordstateAccountInput
 * This object contains information about the thycotic secret server. * @property null|string $name = null The account name
 * @property mixed $passwordId = null The internal passwordstate account id
 * @property null|PasswordstateServerConnectionInputInputType $passwordstateServerConnection = null The passwordstate secret server that this secret belongs to.
 * @property null|string $username = null The username used for this credential.
 */
final class PasswordstateAccountInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'passwordstateServerConnection') {
            return new PasswordstateServerConnectionInputInputType($value);
        }

        return $value;
    }
}