<?php

declare (strict_types=1);
namespace idoit\Module\SyneticsJdisc\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 ManageEnginePMPAccountInput
 * This object contains information about the ManageEngine PMP 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|ManageEnginePMPServerInputInputType $manageEnginePMPServer = null The manage engine PMP server that this secret belongs to.
 * @property null|string $name = null The account name
 * @property mixed $passwordId = null The internal ManageEngine PMP account id
 * @property mixed $resourceId = null The internal ManageEngine PMP resource id to which this account 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 ManageEnginePMPAccountInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'manageEnginePMPServer') {
            return new ManageEnginePMPServerInputInputType($value);
        }

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

        return $value;
    }
}