ESewaResult.fromMap constructor
ESewaResult.fromMap(
- Map<String, dynamic> response
)
Implementation
factory ESewaResult.fromMap(Map<String, dynamic> response) {
return ESewaResult._(
productId: response["productID"] ?? response["productId"],
productName: response["productName"],
totalAmount: response["totalAmount"],
message: response["message"]["successMessage"],
date: response["transactionDetails"]["date"],
status: response["transactionDetails"]["status"],
referenceId: response["transactionDetails"]["referenceId"],
);
}