blob: 7411efa2db47415641335809f0731f48b5db56f7 (
plain)
1
2
3
4
5
6
7
8
9
|
#pragma once
#include "json.hpp"
class Jsonable {
public:
virtual nlohmann::json toJson(void) const = 0;
operator nlohmann::json() const {return toJson();}
virtual ~Jsonable() {}
};
|