| 75 | } |
| 76 | |
| 77 | std::unordered_map<std::string, std::string> options_from_object(const Value * value) { |
| 78 | return minitts::cli::json_options_map(value); |
| 79 | } |
| 80 | |
| 81 | void add_option_from_json( |
| 82 | std::unordered_map<std::string, std::string> & options, |
| 83 | const Value & object, |
| 84 | const std::string & field, |
| 85 | const std::string & option_key) { |
| 86 | const auto * value = object.find(field); |
| 87 | if (value != nullptr && !value->is_null()) { |
| 88 | options[option_key] = minitts::cli::json_option_string(*value); |
| 89 | } |
no test coverage detected