toJson method
Converts to JSON encodable Map
Implementation
Map<String, dynamic> toJson() {
return {
'chats': chats.map((chat) => chat.toJson()).toList(),
'winners_selection_date': winnersSelectionDate,
'winner_count': winnerCount,
'only_new_members': onlyNewMembers,
'has_public_winners': hasPublicWinners,
'prize_description': prizeDescription,
'country_codes': countryCodes,
'premium_subscription_month_count': premiumSubscriptionMonthCount,
'prize_star_count': prizeStarCount,
}..removeWhere(_nullFilter);
}