| 181 | } |
| 182 | |
| 183 | inline std::unordered_map<std::string, int64_t> require_i64_object(const Value & object, const std::string & key) { |
| 184 | std::unordered_map<std::string, int64_t> values; |
| 185 | const auto & map = object.require(key).as_object(); |
| 186 | values.reserve(map.size()); |
| 187 | for (const auto & [name, value] : map) { |
| 188 | values.emplace(name, value.as_i64()); |
| 189 | } |
| 190 | return values; |
| 191 | } |
| 192 | |
| 193 | inline std::vector<int64_t> optional_i64_array(const Value & object, const std::string & key) { |
no test coverage detected