JsonRecordSerializer class final

Serializes a v2 Record as a JSON event frame.

Null indent emits compact JSON Lines. A non-null indent is the number of spaces per indentation level and explicitly emits multiline JSON. Every frame ends with one newline.

Implemented types

Constructors

JsonRecordSerializer({int? indent})
Creates a JSON serializer with optional pretty-print indentation.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
indent → int?
Number of spaces per indentation level; null emits compact JSON.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode(Record record) → String
Encodes record as one newline-terminated JSON event frame.
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