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