<?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 AceBITPasswordDepotSecretInput
 * A secret within the AceBIT Password Depot management system * @property null|AceBITPasswordDepotServerInputInputType $acebitPasswordDepotServer = null The AceBIT Password Depot server that this secret belongs to.
 * @property null|string $comment = null The account comment.
 * @property null|string $databaseFingerprint = null The AceBIT Password Depot DatabaseFingerprint that the secret belongs to
 * @property null|string $fingerprint = null The AceBIT Password Depot secret fingerprint ID
 * @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|AceBITPasswordDepotItemClassTypeEnum $itemClass = null The AceBIT Password Depot secret itemclass
 * @property null|string $name = null The secret name
 * @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 AceBITPasswordDepotSecretInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'acebitPasswordDepotServer') {
            return new AceBITPasswordDepotServerInputInputType($value);
        }

        if ($name === 'itemClass') {
            return new AceBITPasswordDepotItemClassTypeEnum($value);
        }

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

        return $value;
    }
}