encodeWireIdEventsJsonl function

String encodeWireIdEventsJsonl(
  1. Iterable<WireIdEvent> events
)

Encodes events as canonical JSONL with LF line endings.

Implementation

String encodeWireIdEventsJsonl(Iterable<WireIdEvent> events) {
  final buffer = StringBuffer();
  for (final event in events) {
    buffer
      ..write(encodeWireIdEventJson(event))
      ..write('\n');
  }
  return buffer.toString();
}