Map<String, dynamic> toJson() { return { 'chatId': chatId, 'initiator': initiator?.toJson(), if (broadcast != null) 'broadcast': broadcast!.toJson(), }; }