toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final roomEvents = this.roomEvents;
  return {
    if (roomEvents != null) 'room_events': roomEvents.toJson(),
  };
}