Status.to_json: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/status.bend as Status Lines 92-96 of cswap-bend-cli@0.1.0.0/daemon/status.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&start_line=92&end_line=96 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def to_json(s: Status) -> Json.Json: match s: case Status{pid, version, started, last_poll, next_poll, active, es, cfg}: Json.JObj{f("schemaVersion", Json.JNum{"1"}, f("pid", Json.JNum{U32.show(pid)}, f("version", Json.JStr{version}, f("started_at", Json.JStr{started}, f("last_poll_at", opt_str(last_poll), f("next_poll_at", opt_str(next_poll), f("active", opt_num(active), f("config", cfg_json(cfg), f("accounts", Json.JObj{entries_chain(es)}, Json.JNil{})))))))))} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.show https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=Status https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=cfg_json https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=entries_chain https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=f https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=opt_num https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/status.bend&name=opt_str https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json