SaleDetail.fromJson constructor

SaleDetail.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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