toJson method
Implementation
Map<String, Object?> toJson() => {
'reason': reason.wire,
'cursor': cursor,
'events': events.map((item) => item.toJson()).toList(),
'completed': completed.map((item) => item.toJson()).toList(),
'pending': pending.map((item) => item.toJson()).toList(),
};