toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.paymentCollectionByModeList != null) {
data['paymentCollectionByModeList'] =
this.paymentCollectionByModeList!.map((v) => v.toJson()).toList();
}
data['transactionId'] = this.transactionId;
if (this.details != null) {
data['details'] = this.details!.map((v) => v.toJson()).toList();
}
if (this.totalCollectedAmount != null) {
data['totalCollectedAmount'] = this.totalCollectedAmount!.toJson();
}
if (this.paymentTransactionStatus != null) {
data['paymentTransactionStatus'] =
this.paymentTransactionStatus!.toJson();
}
data['paymentCollectionOrderId'] = this.paymentCollectionOrderId;
data['notificationRecipientId'] = this.notificationRecipientId;
return data;
}