| 36 | } |
| 37 | |
| 38 | void set_option_from_json_field( |
| 39 | std::unordered_map<std::string, std::string> & options, |
| 40 | const engine::io::json::Value & object, |
| 41 | const std::string & field, |
| 42 | const std::string & option_key) { |
| 43 | const auto * value = object.find(field); |
| 44 | if (value != nullptr && !value->is_null()) { |
| 45 | set_option(options, option_key, json_option_string(*value)); |
| 46 | } |
| 47 | } |
| 48 |
no test coverage detected