toJson method
Returns the JSON representation of this CID.
Emits the IPLD DAG-JSON link shape {"/": "<base32 cid>"}. This is
intentionally asymmetric with fromJson, which accepts both {"/": ...}
and the atproto {"$link": ...} shapes: toJson keeps emitting the
DAG-JSON / key for backward compatibility. For the atproto data model
link shape, use toAtprotoJson.
Implementation
Map<String, dynamic> toJson() => {_defaultJsonKey: _format()};