MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / fromJson

Function fromJson

app/src/DataModel/Frame.h:1562–1569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1560 */
1561template<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.

Callers 15

onReplyMethod · 0.85
processMessageMethod · 0.85
processMessageMethod · 0.85
handleAuthHandshakeMethod · 0.85
isMCPMessageFunction · 0.85
fromJsonMethod · 0.85
parseMessageFunction · 0.85
fileOpenMethod · 0.85
loadTemplateManifestFunction · 0.85
loadTemplateBodyByIdFunction · 0.85
loadManifestFunction · 0.85

Calls 1

readFunction · 0.85

Tested by

no test coverage detected