JsonBinary class
Marks raw bytes that should be written back out as a JSON string where
each byte is one UTF-16 code unit (0..255) — the same shape malformed
binary-in-a-string payloads normally arrive in. Only used on the
encode side; decode returns a plain List<int> for malformed strings
(see JsonDecodeOptions.badStringAsBinary). Wrap a decoded List<int>
in JsonBinary(...) if you need to round-trip it back out losslessly.
Like BigInt, this is only handled specially when you pass a non-null
options and no toEncodable — see the library doc comment above.
Constructors
-
JsonBinary(List<
int> bytes) -
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override