| 1560 | */ |
| 1561 | template<Concepts::Serializable T> |
| 1562 | [[nodiscard]] inline std::optional<T> fromJson(const QJsonObject& json) noexcept |
| 1563 | { |
| 1564 | T obj; |
| 1565 | if (read(obj, json)) |
| 1566 | return obj; |
| 1567 | |
| 1568 | return std::nullopt; |
| 1569 | } |
| 1570 | |
| 1571 | /** |
| 1572 | * @brief Validates a Frameable object's structure. |
no test coverage detected