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