| 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; |
| 108 | } |
| 109 | return value->as_i64(); |
| 110 | } |
| 111 | |
| 112 | inline int optional_i32(const Value & object, const std::string & key, int default_value) { |
no test coverage detected