SuccessDetail.fromJson constructor
SuccessDetail.fromJson(
- Map json
Implementation
factory SuccessDetail.fromJson(Map<dynamic, dynamic> json) {
return SuccessDetail(
orderId: json['orderId'],
transactionStatus: json['transactionStatus'],
transactionId: json['transactionId'],
transactionDate: json['transactionDate'],
referenceNo: json['referenceNo'],
processMethod: json['processMethod'],
reasonMessage: json['reasonMessage'],
amount: json['amount'],
convenienceFee: json['convenienceFee'].toDouble(),
taxAmount: json['taxAmount'].toDouble(),
discountAmount: json['discountAmount'].toDouble(),
captureAmount: json['captureAmount'].toDouble());
}