JsonEncoderLite class

This class converts JSON objects to strings.

Constructors

JsonEncoderLite([dynamic toEncodable(dynamic object)?])
Creates a JSON encoder.
const
JsonEncoderLite.withIndent(String? indent, [dynamic toEncodable(dynamic object)?])
Creates a JSON encoder that creates multi-line JSON.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
indent String?
The string used for indention.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

convert(Object? object) String
Converts object to a JSON String.
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