toJson method
Converts this object to TDLib JSON.
Implementation
@override
Map<String, dynamic> toJson() => {
'@type': CONSTRUCTOR,
'title': title,
'description': description.toJson(),
'photo': photo?.toJson(),
'currency': currency,
'total_amount': totalAmount,
'start_parameter': startParameter,
'is_test': isTest,
'need_shipping_address': needShippingAddress,
'receipt_message_id': receiptMessageId,
'extended_media': extendedMedia?.toJson(),
};