toJson method

Map<String, dynamic> toJson()

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,
    'is_recurring': isRecurring,
    'is_first_recurring': isFirstRecurring,
  }..removeWhere(_nullFilter);
}