toJson method
Implementation
Map<String, Object?> toJson() => {
'exception': exception,
if (library != null) 'library': library,
if (context != null) 'context': context,
if (count != 1) 'count': count,
if (network) 'network': true,
if (frames.isNotEmpty) 'frames': frames,
};