toJson method
Converts a SuccessfulPayment object to a JSON object
Implementation
Map<String, dynamic> toJson() {
return {
'currency': currency,
'total_amount': totalAmount,
'invoice_payload': invoicePayload,
'shipping_option_id': shippingOptionId,
'order_info': orderInfo?.toJson(),
'telegram_payment_charge_id': telegramPaymentChargeId,
'provider_payment_charge_id': providerPaymentChargeId,
}..removeWhere(_nullFilter);
}