MCPcopy Create free account
hub / github.com/FastLED/FastLED / to_json

Method to_json

src/fl/remote/types.cpp.hpp:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2namespace fl {
3
4fl::json RpcResult::to_json() const {
5 fl::json obj = fl::json::object();
6 obj.set("function", functionName);
7 obj.set("result", result);
8 obj.set("scheduledAt", static_cast<i64>(scheduledAt));
9 obj.set("receivedAt", static_cast<i64>(receivedAt));
10 obj.set("executedAt", static_cast<i64>(executedAt));
11 obj.set("wasScheduled", wasScheduled);
12 return obj;
13}
14
15} // namespace fl

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected