19#include <nlohmann/json.hpp>
24 struct adl_serializer<
std::optional<T>> {
25 static void to_json(json &j,
const std::optional<T> &opt) {
26 if (opt.has_value()) {
33 static void from_json(
const json &j, std::optional<T> &opt) {
void to_json(nlohmann::json &j, const PatchSchedulerConfig &p)
Converts a PatchSchedulerConfig object to a JSON object.
void from_json(const nlohmann::json &j, PatchSchedulerConfig &p)
Deserializes a PatchSchedulerConfig object from a JSON object.