<?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 DatabaseArchiveSettingsInput
 * This is settings for archiving database. * @property null|string $encryptionPassword = null A secret password to encrypt data in database archive. This field is required if discovery passwords are include into database archive.
 * @property bool $includePasswords Flag weather to include or exclude discovery passwords into database archive.
 * @property null|DatabaseArchiveMeasurementSettingsInputInputType $measurementAddon = null Measurement addon archive settings.
 */
final class DatabaseArchiveSettingsInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'measurementAddon') {
            return new DatabaseArchiveMeasurementSettingsInputInputType($value);
        }

        return $value;
    }
}