TransactionReportModel.fromJson constructor
TransactionReportModel.fromJson(
- Map<String, dynamic> json
)
Implementation
TransactionReportModel.fromJson(Map<String, dynamic> json) {
id = json['id'];
isCredit = json['isCredit'];
reference = json['reference'];
paymentMethod = json['paymentMethod'];
remark = json['remark'];
description = json['description'];
productId = json['productId'];
productName = json['productName'];
sku = json['sku'];
payerId = json['payerId'];
payerName = json['payerName'];
payeeId = json['payeeId'];
payeeName = json['payeeName'];
onBehalfOfId = json['onBehalfOfId'];
onBehalfOfName = json['onBehalfOfName'];
additionalData = json['additionalData'];
transactionDate = json['transactionDate'];
createdAt = json['createdAt'];
updatedAt = json['updatedAt'];
transactionTypeIdentifier = json['transactionTypeIdentifier'];
tenantId = json['tenantId'];
createdById = json['createdById'];
updatedById = json['updatedById'];
currency = json['currency'];
transactionTypeDetail = json['transactionTypeDetail'] != null
? new TransactionTypeDetail.fromJson(json['transactionTypeDetail'])
: null;
currencyDetail = json['currencyDetail'] != null
? new CurrencyDetail.fromJson(json['currencyDetail'])
: null;
virtualValue = json['virtualValue'];
amount = json['amount'];
baseTransaction = json['baseTransaction'];
partnerLevelTypeIdentifier = json['partnerLevelTypeIdentifier'];
metadata = json['metadata'] != null
? new Metadata.fromJson(json['metadata'])
: null;
}