iceberg-cpp
Loading...
Searching...
No Matches
Macros | Functions
json_serde_internal.h File Reference
#include <nlohmann/json_fwd.hpp>
#include "iceberg/catalog/rest/iceberg_rest_export.h"
#include "iceberg/catalog/rest/types.h"
#include "iceberg/result.h"

Go to the source code of this file.

Macros

#define ICEBERG_DECLARE_JSON_SERDE(Model)
 

Functions

template<typename Model >
Result< Model > iceberg::rest::FromJson (const nlohmann::json &json)
 

Detailed Description

JSON serialization and deserialization for Iceberg REST Catalog API types.

Macro Definition Documentation

◆ ICEBERG_DECLARE_JSON_SERDE

#define ICEBERG_DECLARE_JSON_SERDE (   Model)
Value:
ICEBERG_REST_EXPORT Result<Model> Model##FromJson(const nlohmann::json& json); \
\
template <> \
ICEBERG_REST_EXPORT Result<Model> FromJson(const nlohmann::json& json); \
\
ICEBERG_REST_EXPORT nlohmann::json ToJson(const Model& model);