| 2 | namespace fl { |
| 3 | |
| 4 | fl::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 |