<?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 DatabaseBackupScheduledJobInput
 * A database backup job object to be executed on the selected schedule. * @property null|DatabaseArchiveSettingsInputInputType $archiveSettings = null Database archive settings
 * @property null|string $baseFileName = null Database backup base file name
 * @property null|string $destinationDirectory = null Database backup destination directory
 * @property null|int $keepRevisions = null Database backup revisions to keep
 * @property null|NetworkStorageLocationInputInputType $networkStorageLocation = null The job's export storage location
 * @property null|bool $overwriteFlag = null Database backup overwrite flag
 */
final class DatabaseBackupScheduledJobInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'archiveSettings') {
            return new DatabaseArchiveSettingsInputInputType($value);
        }

        if ($name === 'networkStorageLocation') {
            return new NetworkStorageLocationInputInputType($value);
        }

        return $value;
    }
}