toJson method
Implementation
Map<String, Object?> toJson() {
final data = <String, Object?>{};
if (events != null) {
data['events'] = events!.map((i) => i.toJson()).toList();
}
if (limited != null) {
data['limited'] = limited;
}
if (prevBatch != null) {
data['prev_batch'] = prevBatch;
}
return data;
}