toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['isCredit'] = this.isCredit;
data['reference'] = this.reference;
data['paymentMethod'] = this.paymentMethod;
data['remark'] = this.remark;
data['description'] = this.description;
data['productId'] = this.productId;
data['productName'] = this.productName;
data['sku'] = this.sku;
data['payerId'] = this.payerId;
data['payerName'] = this.payerName;
data['payeeId'] = this.payeeId;
data['payeeName'] = this.payeeName;
data['onBehalfOfId'] = this.onBehalfOfId;
data['onBehalfOfName'] = this.onBehalfOfName;
data['additionalData'] = this.additionalData;
data['transactionDate'] = this.transactionDate;
data['createdAt'] = this.createdAt;
data['updatedAt'] = this.updatedAt;
data['transactionTypeIdentifier'] = this.transactionTypeIdentifier;
data['tenantId'] = this.tenantId;
data['createdById'] = this.createdById;
data['updatedById'] = this.updatedById;
data['currency'] = this.currency;
if (this.transactionTypeDetail != null) {
data['transactionTypeDetail'] = this.transactionTypeDetail!.toJson();
}
if (this.currencyDetail != null) {
data['currencyDetail'] = this.currencyDetail!.toJson();
}
data['virtualValue'] = this.virtualValue;
data['amount'] = this.amount;
data['baseTransaction'] = this.baseTransaction;
data['partnerLevelTypeIdentifier'] = this.partnerLevelTypeIdentifier;
if (this.metadata != null) {
data['metadata'] = this.metadata!.toJson();
}
return data;
}