FugueCodec<T> class

JSON codec for a Fugue list, matching the library's Codec convention.

Delegates per-element (de)serialisation to element; the block/run-length framing is provided by Fugue.encode / Fugue.decode. One row per block, so a contiguous run serialises to a single entry.

Implemented types

Constructors

FugueCodec(Codec<T> element)
Wraps an element codec for the value type T.
const

Properties

element Codec<T>
Codec for a single element value.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(Object? json) Fugue<T>
override
encode(Fugue<T> value) Object?
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