CborJsonEncoder class
Encodes CBOR into JSON.
If the keys for a map are not strings, they are encoded recursively as JSON, and the string is used.
This encoder supports startChunkedConversion and can therefore be used as a stream transformer.
Constructors
- CborJsonEncoder({Object? substituteValue, bool allowMalformedUtf8 = false})
-
Create a new CBOR JSON encoder.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bind(
Stream< CborValue> stream) → Stream<String> -
Transforms the provided
stream
.inherited -
cast<
RS, RT> () → Converter< RS, RT> -
Provides a
Converter<RS, RT>
view of this stream transformer.inherited -
convert(
CborValue input) → String -
Converts
input
and returns the result of the conversion.override -
fuse<
TT> (Converter< String, TT> other) → Converter<CborValue, TT> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startChunkedConversion(
Sink< String> sink) → Sink<CborValue> -
Starts a chunked conversion.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited