toJson method

List<Object?> toJson()

Implementation

List<Object?> toJson() {
  return [type, 'events', events.map((e) => e.toJson()).toList()];
}