PaystackDetailModel.fromJson constructor
PaystackDetailModel.fromJson(
- Map<String, dynamic> data
)
Implementation
factory PaystackDetailModel.fromJson(Map<String, dynamic> data){
return PaystackDetailModel(
merchantEmail: data["merchantEmail"],
customerEmail: data["customerEmail"],
amount: data["amount"],
partner: data["partner"],
publicKey: data["publicKey"],
transactionRef: data["transactionRef"],
currency: data["currency"],
paymentPartnerId: data["paymentPartnerId"],
redirectLink: data["redirectLink"],
);
}