<?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 passwordstate account. * @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 account name
 * @property null|string $password = null The password used for this credential.
 * @property mixed $passwordId = null The internal passwordstate account id
 * @property mixed $passwordListId = null The internal passwordstate account list id
 * @property null|PasswordstateServerConnectionInputInputType $passwordstateServerConnection = null The passwordstate secret server that this secret belongs to.
 * @property null|AccountTypeEnum $type = null The account type.
 * @property null|string $username = null The username used for this credential.
 * @property null|string $label = null The account label
 * @property null|string $reference = null The account unique reference
 */
final class PasswordstateAccountInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

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

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

        return $value;
    }
}