1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 #pragma once 4 #include <nlohmann/json.hpp> 5 6 namespace leak_detector 7 { 8 // clang-format off 9 10 enum class LeakDetectorType{ 11 Invalid, 12 Moisture, 13 FloatSwitch, 14 }; 15 16 NLOHMANN_JSON_SERIALIZE_ENUM(LeakDetectorType, { 17 {LeakDetectorType::Invalid, "Invalid"}, 18 {LeakDetectorType::Moisture, "Moisture"}, 19 {LeakDetectorType::FloatSwitch, "FloatSwitch"}, 20 }); 21 22 } 23 // clang-format on 24