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