| 104 | } |
| 105 | |
| 106 | inline int64_t optional_nullable_i64(const Value & object, const std::string & key, int64_t default_value) { |
| 107 | const auto * value = object.find(key); |
| 108 | if (value == nullptr || value->is_null()) { |
| 109 | return default_value; |
| 110 | } |
| 111 | return value->as_i64(); |
| 112 | } |
no test coverage detected