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