| 58 | } |
| 59 | |
| 60 | std::string optional_string(const engine::io::json::Value & object, const std::string & key) { |
| 61 | const auto * value = object.find(key); |
| 62 | return value == nullptr || value->is_null() ? std::string{} : value->as_string(); |
| 63 | } |
| 64 | |
| 65 | std::string required_string(const engine::io::json::Value & object, const std::string & key) { |
| 66 | const auto out = optional_string(object, key); |
no test coverage detected