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

Function ss_jsr

app/src/DataModel/Frame.h:260–268  ·  view source on GitHub ↗

* @brief Reads a value from a QJsonObject based on a key, returning a default value if the key does * not exist. */

Source from the content-addressed store, hash-verified

258 * not exist.
259 */
260[[nodiscard]] inline QVariant ss_jsr(const QJsonObject& object,
261 QLatin1StringView key,
262 const QVariant& defaultValue)
263{
264 if (object.contains(key))
265 return object.value(key);
266
267 return defaultValue;
268}
269
270//--------------------------------------------------------------------------------------------------
271// Action structure

Callers 6

loadFromJsonDocumentMethod · 0.85
readFunction · 0.85
read_io_settingsMethod · 0.85
readMethod · 0.85
readDatasetAlarmBandsMethod · 0.85

Calls 2

containsMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected