Add mapping logic and serialization for writing
This commit is contained in:
13
app/include/Serializable.h
Normal file
13
app/include/Serializable.h
Normal 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_
|
||||
Reference in New Issue
Block a user