<?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 DatabaseArchiveDialogPreferencesInput
 * Database archive dialog preferences. * @property null|CommonDialogPreferencesInputInputType $commonDialogPreferences = null Common dialog preferences.
 * @property bool $includePasswords Flag to include or exclude discovery passwords. Usually if you exclude passwords you should use reporting mode only.
 * @property null|DatabaseArchiveMeasurementAddonDialogPreferencesInputInputType $measurement = null Database archive settings related to measurement addon.
 */
final class DatabaseArchiveDialogPreferencesInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'commonDialogPreferences') {
            return new CommonDialogPreferencesInputInputType($value);
        }

        if ($name === 'measurement') {
            return new DatabaseArchiveMeasurementAddonDialogPreferencesInputInputType($value);
        }

        return $value;
    }
}