toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'tran_id': tranId,
'identity_code': identityCode,
'tran_no': tranNo,
'tran_amount': tranAmount,
'tran_amount_display': tranAmountDisplay,
'total_amount': totalAmount,
'total_amount_display': totalAmountDisplay,
'fee_amount': feeAmount,
'fee_amount_display': feeAmountDisplay,
'currency': currency,
'is_allow_favorite': isAllowFavorite,
'customer_code': customerCode,
'customer_name': customerName,
'customer_email': customerEmail,
'customer_phone': customerPhone,
'tran_date': tranDate,
'expired_date': expiredDate,
'bank_ref_id': bankRefId,
'status': status,
'cancel_url': cancelUrl,
'redirect_url': redirectUrl,
'payment_link': paymentLink,
'language': language,
'khqr_image': khqrImage,
'khqr_string': khqrString,
'description': description,
'bank_payment_method':
bankPaymentMethod.map((model) => model.toJson()).toList(),
};
}