// Copyrigth Xtooltech @ 2023- All rights reserved.(LXH)

#ifndef __JSON_SERIALIZABLE_HPP__
#define __JSON_SERIALIZABLE_HPP__

#include <string>
#include <vector>

namespace otx {
namespace jidu {

/**
 * json序列化接口协议。
 *
 */
class JsonSerializable {
protected:
  JsonSerializable() = default;
  JsonSerializable(const JsonSerializable &) = default;
  JsonSerializable &operator=(const JsonSerializable &) = default;
public:
  virtual ~JsonSerializable() = default;

public:
  virtual std::string toJsonString() = 0;
};

} // namespace jidu
} // namespace otx

#endif /* __JSON_SERIALIZABLE_HPP__ */
