toJson method
Converts to JSON encodable Map
Implementation
Map<String, dynamic> toJson() {
return {
'chat': chat.toJson(),
'giveaway_message_id': giveawayMessageId,
'winners_selection_date': winnersSelectionDate,
'winner_count': winnerCount,
'winners': winners.map((user) => user.toJson()).toList(),
'additional_chat_count': additionalChatCount,
'premium_subscription_month_count': premiumSubscriptionMonthCount,
'unclaimed_prize_count': unclaimedPrizeCount,
'only_new_members': onlyNewMembers,
'was_refunded': wasRefunded,
'prize_description': prizeDescription,
'prize_star_count': prizeStarCount,
}..removeWhere(_nullFilter);
}