toJson method
Converts a ChatJoinRequest to a Map for JSON encoding.
Implementation
Map<String, dynamic> toJson() {
return {
'chat': chat.toJson(),
'from': from.toJson(),
'date': date,
'bio': bio,
'invite_link': inviteLink?.toJson(),
'user_chat_id': userChatId,
}..removeWhere(_nullFilter);
}