| 79 | std::unordered_map<std::string, std::string> options; |
| 80 | if (value == nullptr || value->is_null()) { |
| 81 | return options; |
| 82 | } |
| 83 | for (const auto & [key, child] : value->as_object()) { |
| 84 | options[key] = json_option_string(child); |
| 85 | } |
| 86 | return options; |
| 87 | } |
| 88 | |
| 89 | std::optional<std::string> json_optional_string( |
| 90 | const engine::io::json::Value & object, |
| 91 | const std::string & key) { |
| 92 | const auto * value = object.find(key); |
no test coverage detected