PaylinkInvoice.fromResponseData constructor
PaylinkInvoice.fromResponseData(
- Map<String, dynamic> data
)
Implementation
factory PaylinkInvoice.fromResponseData(Map<String, dynamic> data) {
return PaylinkInvoice(
gatewayOrderRequest:
PaylinkGatewayOrderRequest.fromMap(data['gatewayOrderRequest'] ?? {}),
amount: data['amount'] ?? 0.0,
transactionNo: data['transactionNo'] ?? '',
orderStatus: data['orderStatus'] ?? '',
paymentErrors: data['paymentErrors'],
url: data['url'] ?? '',
qrUrl: data['qrUrl'] ?? '',
mobileUrl: data['mobileUrl'] ?? '',
checkUrl: data['checkUrl'] ?? '',
success: data['success'] ?? false,
digitalOrder: data['digitalOrder'] ?? false,
foreignCurrencyRate: data['foreignCurrencyRate'],
paymentReceipt: data['paymentReceipt'],
metadata: data['metadata'],
);
}