toJson method
Creates a json from the object
Implementation
Map toJson() {
return {
'currency': currency,
'total_amount': totalAmount,
'invoice_payload': invoicePayload,
'shipping_option_id': shippingOptionId,
'order_info': orderInfo,
'telegram_payment_charge_id': telegramPaymentChargeId,
'provider_payment_charge_id': providerPaymentChargeId,
}..removeWhere((_, v) => v == null);
}