1 #pragma once
2 #include <nlohmann/json.hpp>
3 
4 namespace redundancy
5 {
6 // clang-format off
7 
8 enum class RedundancyType{
9     Invalid,
10     Failover,
11     NPlusM,
12     Sharing,
13     Sparing,
14     NotRedundant,
15 };
16 
17 NLOHMANN_JSON_SERIALIZE_ENUM(RedundancyType, {
18     {RedundancyType::Invalid, "Invalid"},
19     {RedundancyType::Failover, "Failover"},
20     {RedundancyType::NPlusM, "NPlusM"},
21     {RedundancyType::Sharing, "Sharing"},
22     {RedundancyType::Sparing, "Sparing"},
23     {RedundancyType::NotRedundant, "NotRedundant"},
24 });
25 
26 }
27 // clang-format on
28