28 #include <SimoxUtility/json.h>
32 #include <VisionX/components/ImageRecordingManager/ImageRecordingManagerInterface.h>
37 void to_json(nlohmann::json& j,
const ChannelConfig& cc)
41 {
"disabled", cc.disabled},
43 {
"format", cc.format},
48 void from_json(
const nlohmann::json& j, ChannelConfig& cc)
50 j.at(
"disabled").get_to(cc.disabled);
51 j.at(
"name").get_to(cc.name);
52 j.at(
"format").get_to(cc.format);
53 j.at(
"fps").get_to(cc.fps);
56 void to_json(nlohmann::json& j,
const Config&
c)
61 {
"location",
c.location},
62 {
"startTimestamp",
c.startTimestamp},
63 {
"channelConfigs",
c.channelConfigs}
69 j.at(
"name").get_to(
c.name);
70 j.at(
"location").get_to(
c.location);
71 j.at(
"startTimestamp").get_to(
c.startTimestamp);
72 j.at(
"channelConfigs").get_to(
c.channelConfigs);