Data.fromJson constructor

Data.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Data.fromJson(Map<String, dynamic> json) {
  amount =
  json['amount'] != null ? Amount.fromJson(json['amount']) : null;
  bankName = json['bankName'];
  beneficiaryAccountName = json['beneficiaryAccountName'];
  beneficiaryAccountNumber = json['beneficiaryAccountNumber'];
  narration = json['narration'];
  paymentDate = json['paymentDate'];
  paymentRef = json['paymentRef'];
  sender = json['sender'];
  senderName = json['senderName'];
  txnDate = json['txnDate'];
  txnRef = json['txnRef'];
  txnType = json['txnType'];
  zainboxCode = json['zainboxCode'];
}