| 79 | const std::string & key) { |
| 80 | const auto * value = object.find(key); |
| 81 | if (value == nullptr || value->is_null()) { |
| 82 | return std::nullopt; |
| 83 | } |
| 84 | return value->as_string(); |
| 85 | } |
| 86 | |
| 87 | std::optional<double> workflow_optional_number( |
| 88 | const engine::io::json::Value & object, |
| 89 | const std::string & key) { |
| 90 | const auto * value = object.find(key); |
| 91 | if (value == nullptr || value->is_null()) { |
| 92 | return std::nullopt; |
no test coverage detected