| 192 | } |
| 193 | |
| 194 | int64_t JsonHelpers::getInt64OrDefault( |
| 195 | const rapidjson::Value& json, |
| 196 | const std::string& key, |
| 197 | int64_t defaultValue) { |
| 198 | const auto it = json.FindMember(key.c_str()); |
| 199 | return it == json.MemberEnd() |
| 200 | ? defaultValue |
| 201 | : JsonHelpers::getInt64OrDefault(it->value, defaultValue); |
| 202 | } |
| 203 | |
| 204 | int64_t JsonHelpers::getInt64OrDefault( |
| 205 | const rapidjson::Value& json, |
no test coverage detected