| 143 | const auto * value = object.find(key); |
| 144 | return value != nullptr && value->is_string() ? value->as_string() : std::move(default_value); |
| 145 | } |
| 146 | |
| 147 | inline std::string optional_nullable_string(const Value & object, const std::string & key, std::string default_value) { |
| 148 | const auto * value = object.find(key); |
| 149 | if (value == nullptr || value->is_null()) { |
| 150 | return default_value; |
no outgoing calls
no test coverage detected