| 100 | const auto * value = object.find(key); |
| 101 | return value != nullptr && value->is_number() ? value->as_i64() : default_value; |
| 102 | } |
| 103 | |
| 104 | inline int64_t optional_nullable_i64(const Value & object, const std::string & key, int64_t default_value) { |
| 105 | const auto * value = object.find(key); |
| 106 | if (value == nullptr || value->is_null()) { |
| 107 | return default_value; |
no test coverage detected