toFormattedJson method

String toFormattedJson()

Serializes the event to formatted, indented JSON.

Implementation

String toFormattedJson() => const JsonEncoder.withIndent('  ').convert(toJson());