Add mapping logic and serialization for writing

This commit is contained in:
2022-09-20 23:17:40 +02:00
parent df1c8f3821
commit 8ceb762fe1
68 changed files with 49901 additions and 14 deletions

View File

@@ -0,0 +1,13 @@
#ifndef SERIALIZABLE_H_
#define SERIALIZABLE_H_
#include <nlohmann/json.hpp>
using json = nlohmann::json;
class Serializable {
public:
virtual json toJson() const = 0;
};
#endif // SERIALIZABLE_H_