MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / serialize

Method serialize

launcher/ApplicationMessage.cpp:56–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56QByteArray ApplicationMessage::serialize()
57{
58 QJsonObject root;
59 root.insert("command", command);
60 QJsonObject outArgs;
61 for (auto iter = args.constBegin(); iter != args.constEnd(); iter++) {
62 outArgs.insert(iter.key(), iter.value());
63 }
64 root.insert("args", outArgs);
65
66 return Json::toText(root);
67}

Callers 3

ApplicationMethod · 0.45
test_PositiveMethod · 0.45
test_NegativeMethod · 0.45

Calls 3

toTextFunction · 0.85
insertMethod · 0.80
valueMethod · 0.80

Tested by 2

test_PositiveMethod · 0.36
test_NegativeMethod · 0.36