toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'creator_id': creatorId?.toJson(),
'is_from_giveaway': isFromGiveaway,
'is_unclaimed': isUnclaimed,
'currency': currency,
'amount': amount,
'cryptocurrency': cryptocurrency,
'cryptocurrency_amount': cryptocurrencyAmount.toString(),
'month_count': monthCount,
'sticker': sticker?.toJson(),
'code': code,
};