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
Methods
-
encode(
Record record) → String -
Encodes
recordas 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