toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = Map<String, dynamic>();
  data['createdByUserName'] = this.createdByUserName;
  data['updatedByUserName'] = this.updatedByUserName;
  data['createdBy'] = this.createdBy;
  data['createdDate'] = this.createdDate;
  data['updatedBy'] = this.updatedBy;
  data['updatedDate'] = this.updatedDate;
  data['id'] = this.id;
  data['productCount'] = this.productCount;
  data['storeId'] = this.storeId;
  data['purchaseType'] = this.purchaseType;
  data['conversionUnit'] = this.conversionUnit;
  data['conversionValue'] = this.conversionValue;
  data['frequency'] = this.frequency;
  data['factor'] = this.factor;
  data['status'] = this.status;
  data['penaltyCharges'] = this.penaltyCharges;
  data['refundAmount'] = this.refundAmount;
  data['warrantyPeriod'] = this.warrantyPeriod;
  data['nextInstallmentAmountToBePaid'] = this.nextInstallmentAmountToBePaid;
  data['endDate'] = this.endDate;
  data['mainSaleOrderId'] = this.mainSaleOrderId;
  data['type'] = this.type;
  data['resellerId'] = this.resellerId;
  data['cashRegisterId'] = this.cashRegisterId;
  data['invoiceId'] = this.invoiceId;
  data['cartId'] = this.cartId;
  data['paymentTransactionId'] = this.paymentTransactionId;
  data['transactionType'] = this.transactionType;
  data['transactionSubType'] = this.transactionSubType;
  data['saleType'] = this.saleType;
  data['extTransferRefNo'] = this.extTransferRefNo;
  data['extReceiptNo'] = this.extReceiptNo;
  data['invoiceReceiptFileId'] = this.invoiceReceiptFileId;
  data['paymentReceiptFileId'] = this.paymentReceiptFileId;
  if (this.customerDetails != null) {
    data['customerDetails'] = this.customerDetails!.toJson();
  }
  data['sellerType'] = this.sellerType;
  data['sellerId'] = this.sellerId;
  data['buyerType'] = this.buyerType;
  data['buyerId'] = this.buyerId;
  data['perInstallmentAmount'] = this.perInstallmentAmount;
  data['pendingInstallments'] = this.pendingInstallments;
  data['completedInstallments'] = this.completedInstallments;
  data['totalInstallments'] = this.totalInstallments;
  data['paymentDueDate'] = this.paymentDueDate;
  data['priceWithDiscount'] = this.priceWithDiscount;
  data['priceWithoutDiscount'] = this.priceWithoutDiscount;
  data['priceWithTax'] = this.priceWithTax;
  data['priceWithoutTax'] = this.priceWithoutTax;
  data['priceWithWithHeldTax'] = this.priceWithWithHeldTax;
  data['priceWithoutWithHeldTax'] = this.priceWithoutWithHeldTax;
  data['withHeldTaxPercentage'] = this.withHeldTaxPercentage;
  data['withHeldTaxAmount'] = this.withHeldTaxAmount;
  data['withHeldTaxCode'] = this.withHeldTaxCode;
  data['pendingAmount'] = this.pendingAmount;
  data['paidAmount'] = this.paidAmount;
  data['totalAmount'] = this.totalAmount;
  data['paymentOrderId'] = this.paymentOrderId;
  return data;
}