toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"amount": amount,
"original_amount": originalAmount,
"is_partial": isPartial,
"currency_code": currencyCode,
"country_code": countryCode,
"status": status,
"description": description,
"merchant_reference_id": merchantReferenceId,
"customer_token": customerToken,
"payment_method": paymentMethod,
"expiration": expiration,
"captured": captured,
"refunded": refunded,
"refunded_amount": refundedAmount,
"receipt_email": receiptEmail,
"redirect_url": redirectUrl,
"complete_payment_url": completePaymentUrl,
"error_payment_url": errorPaymentUrl,
"receipt_number": receiptNumber,
"flow_type": flowType,
"address": address,
"statement_descriptor": statementDescriptor,
"transaction_id": transactionId,
"created_at": createdAt,
"updated_at": updatedAt,
"metadata": metadata?.toJson(),
"failure_code": failureCode,
"failure_message": failureMessage,
"paid": paid,
"paid_at": paidAt,
};