TransactionIdDetailsModel.fromJson constructor

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

Implementation

factory TransactionIdDetailsModel.fromJson(Map<String, dynamic> json) => TransactionIdDetailsModel(
  invoicenumber: json["invoicenumber"],
  verificationstatus: json["verificationstatus"],
  isRefund: json["isRefund"],
  amount: json["amount"]?.toDouble(),
  servicecharge: json["servicecharge"]?.toDouble(),
  servicechargedescription: json["servicechargedescription"] == null ? null : Servicechargedescription.fromJson(json["servicechargedescription"]),
  transactionSummary: json["transaction_summary"] == null ? null : TransactionSummary.fromJson(json["transaction_summary"]),
  txnip: json["txnip"],
  txniptrackervalue: json["txniptrackervalue"],
  isSuspicious: json["is_suspicious"],
  isFraud: json["isFraud"],
  openingBalance: json["opening_balance"],
  osHistory: json["os_history"] == null ? [] : List<OsHistory>.from(json["os_history"]!.map((x) => OsHistory.fromJson(x))),
  creditcardpaymentmodeid: json["creditcardpaymentmodeid"],
  txnBankStatus: json["txn_bank_status"] == null ? [] : List<TxnBankStatus>.from(json["txn_bank_status"]!.map((x) => TxnBankStatus.fromJson(x))),
  sourceofTxn: json["sourceofTxn"],
  id: json["id"],
  transactiondate: json["transactiondate"] == null ? null : DateTime.parse(json["transactiondate"]),
  deletedAt: json["deletedAt"],
  created: json["created"] == null ? null : DateTime.parse(json["created"]),
  modified: json["modified"] == null ? null : DateTime.parse(json["modified"]),
  transactionentityId: json["transactionentityId"],
  transactionmodeId: json["transactionmodeId"],
  transactionstatusId: json["transactionstatusId"],
  cardschemeid: json["cardschemeid"],
  hash: json["hash"],
  sadadId: json["SadadId"],
  receiverId: json["receiverId"],
);