This class converts JSON objects to strings.
Constructors
- JsonEncoder([dynamic toEncodable(object) ])
-
Creates a JSON encoder.
const - JsonEncoder.withIndent(String indent, [ dynamic toEncodable(object) ])
-
Creates a JSON encoder that creates multi-line JSON.
const
Properties
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
bind(
Stream<Object> stream) → Stream<String> -
Transforms the provided
stream
. -
convert(
Object object) → String -
Converts
object
to a JSON String. -
fuse<T>(
Converter<String, T> other) → Converter<Object, T> -
Fuses
this
withother
. -
startChunkedConversion(
Sink<String> sink) → ChunkedConversionSink<Object> -
Starts a chunked conversion.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited