DagJsonCodec class
Codec for DAG-JSON.
The DAG-JSON multicodec (0x0129) encodes/decodes IPLD data using JSON.
This implementation handles the standard JSON types. CID links are encoded
as {'/': '<cid-string>'} maps, matching the DAG-JSON spec.
- Implemented types
Constructors
Properties
- code → int
-
Multicodec integer code (e.g.,
0x71for DAG-CBOR).no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Multicodec name (e.g., 'dag-cbor').
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Uint8List data) → Future -
Decodes bytes into a Dart value.
override
-
encode(
dynamic value) → Future< Uint8List> -
Encodes
valueinto bytes.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited