toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "invoicenumber": invoicenumber,
  "verificationstatus": verificationstatus,
  "isRefund": isRefund,
  "amount": amount,
  "servicecharge": servicecharge,
  "servicechargedescription": servicechargedescription?.toJson(),
  "transaction_summary": transactionSummary?.toJson(),
  "txnip": txnip,
  "txniptrackervalue": txniptrackervalue,
  "is_suspicious": isSuspicious,
  "isFraud": isFraud,
  "opening_balance": openingBalance,
  "os_history": osHistory == null ? [] : List<dynamic>.from(osHistory!.map((x) => x.toJson())),
  "creditcardpaymentmodeid": creditcardpaymentmodeid,
  "txn_bank_status": txnBankStatus == null ? [] : List<dynamic>.from(txnBankStatus!.map((x) => x.toJson())),
  "sourceofTxn": sourceofTxn,
  "id": id,
  "transactiondate": "${transactiondate!.year.toString().padLeft(4, '0')}-${transactiondate!.month.toString().padLeft(2, '0')}-${transactiondate!.day.toString().padLeft(2, '0')}",
  "deletedAt": deletedAt,
  "created": created?.toIso8601String(),
  "modified": modified?.toIso8601String(),
  "transactionentityId": transactionentityId,
  "transactionmodeId": transactionmodeId,
  "transactionstatusId": transactionstatusId,
  "cardschemeid": cardschemeid,
  "hash": hash,
  "SadadId": sadadId,
  "receiverId": receiverId,
};