<?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 UpdateTopicSubscriptionOptionsInput
 * The update topic subscription options * @property null|string $clientId = null The client id
 * @property bool $shareTopicRunner The share topic flag. If true, runners will be shared among clients.
 * @property null|UpdateTopicEnum $updateTopic = null The topic to subscribe for updates
 */
final class UpdateTopicSubscriptionOptionsInputInputType extends InputType
{
    protected function decorate($name, $value)
    {
        if ($value === null) {
            return null;
        }

        if ($name === 'updateTopic') {
            return new UpdateTopicEnum($value);
        }

        return $value;
    }
}