28 #include <SimoxUtility/json.h>
33 #include <VisionX/components/ImageRecordingManager/ImageRecordingManagerInterface.h>
38 to_json(nlohmann::json& j,
const ChannelConfig& cc)
41 {
"disabled", cc.disabled}, {
"name", cc.name}, {
"format", cc.format}, {
"fps", cc.fps}};
45 from_json(
const nlohmann::json& j, ChannelConfig& cc)
47 j.at(
"disabled").get_to(cc.disabled);
48 j.at(
"name").get_to(cc.name);
49 j.at(
"format").get_to(cc.format);
50 j.at(
"fps").get_to(cc.fps);
56 j = nlohmann::json{{
"name",
c.name},
57 {
"location",
c.location},
58 {
"startTimestamp",
c.startTimestamp},
59 {
"channelConfigs",
c.channelConfigs}};
65 j.at(
"name").get_to(
c.name);
66 j.at(
"location").get_to(
c.location);
67 j.at(
"startTimestamp").get_to(
c.startTimestamp);
68 j.at(
"channelConfigs").get_to(
c.channelConfigs);