toJson method
Implementation
@override
Map<String, dynamic> toJson() => <String, dynamic>{
'creator_id': creatorId?.toJson(),
'text': text?.toJson(),
'is_from_giveaway': isFromGiveaway,
'is_unclaimed': isUnclaimed,
'currency': currency,
'amount': amount,
'cryptocurrency': cryptocurrency,
'cryptocurrency_amount': cryptocurrencyAmount.toString(),
'month_count': monthCount,
'day_count': dayCount,
'sticker': sticker?.toJson(),
'code': code,
'@type': constructor,
};