| 91 | } |
| 92 | |
| 93 | std::string optional_string(const engine::io::json::Value & object, const std::string & key) { |
| 94 | const auto * value = object.find(key); |
| 95 | return value == nullptr || value->is_null() ? std::string{} : value->as_string(); |
| 96 | } |
| 97 | |
| 98 | std::string required_string(const engine::io::json::Value & object, const std::string & key) { |
| 99 | const auto out = optional_string(object, key); |
no test coverage detected