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