toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'messageGiftedPremium',
if (extra != null) '@extra': extra,
'gifter_user_id': gifter_user_id,
'currency': currency,
'amount': amount,
'cryptocurrency': cryptocurrency,
'cryptocurrency_amount': cryptocurrency_amount,
'month_count': month_count,
'sticker': sticker
};
}