| 190 | values.emplace(name, value.as_i64()); |
| 191 | } |
| 192 | return values; |
| 193 | } |
| 194 | |
| 195 | inline std::vector<int64_t> optional_i64_array(const Value & object, const std::string & key) { |
| 196 | std::vector<int64_t> values; |
| 197 | const auto * value = object.find(key); |
| 198 | if (value == nullptr || !value->is_array()) { |
| 199 | return values; |
| 200 | } |
| 201 | return number_array_as<int64_t>(*value); |
| 202 | } |
| 203 | |
| 204 | inline std::vector<int64_t> optional_i64_array( |
| 205 | const Value & object, |
no test coverage detected