#pragma once

#include <maps/libs/json/include/value.h>
#include <maps/libs/json/include/builder.h>

#include <maps/wikimap/mapspro/services/autocart/pipeline/libs/objects/include/building.h>

namespace maps::wiki::autocart::pipeline {

class BaseResult {
public:
    void toJson(json::ObjectBuilder& builder) const;
    static BaseResult fromJson(const json::Value& value);

    bool operator==(const BaseResult& that) const;

    uint64_t id;
    Building bld;
};

} // namespace maps::wiki::autocart::pipeline
