toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  data['id'] = this.id;
  data['name'] = this.name;
  data['description'] = this.description;
  data['pogId'] = this.pogId;
  data['productOfferGroupId'] = this.productOfferGroupId;
  data['pogName'] = this.pogName;
  data['poImage'] = this.poImage;
  data['productFamilyId'] = this.productFamilyId;
  data['productFamilyName'] = this.productFamilyName;
  data['productId'] = this.productId;
  data['assetId'] = this.assetId;
  data['startAssetRange'] = this.startAssetRange;
  data['endAssetRange'] = this.endAssetRange;
  data['credit_gl'] = this.creditGl;
  data['debit_gl'] = this.debitGl;
  data['productType'] = this.productType;
  data['armProductId'] = this.armProductId;
  data['mainProductType'] = this.mainProductType;
  data['serialNumber'] = this.serialNumber;
  data['subProducts'] = this.subProducts;
  data['contactNumber'] = this.contactNumber;
  data['rateCartId'] = this.rateCartId;
  data['isTopUp'] = this.isTopUp;
  data['isEvc'] = this.isEvc;
  data['replaceWarranty'] = this.replaceWarranty;
  data['productSubType'] = this.productSubType;
  data['senderContactNumber'] = this.senderContactNumber;
  data['pinCodeValue'] = this.pinCodeValue;
  data['imei'] = this.imei;
  data['recommended'] = this.recommended;
  if (this.errors != null) {
    data['errors'] = this.errors!.map((v) => v.toJson()).toList();
  }
  data['materialCode'] = this.materialCode;
  data['materialCodeDescription'] = this.materialCodeDescription;
  data['taxClassificationName'] = this.taxClassificationName;
  if (this.taxClassificationDetails != null) {
    data['taxClassificationDetails'] =
        this.taxClassificationDetails!.toJson();
  }
  data['currency'] = this.currency;
  data['insuranceInfo'] = this.insuranceInfo;
  data['repairWarranty'] = this.repairWarranty;
  data['returnAssetStatus'] = this.returnAssetStatus;
  data['eloadDetails'] = this.eloadDetails;
  data['partnerId'] = this.partnerId;
  data['quantity'] = this.quantity;
  data['priceOverrideApplicable'] = this.priceOverrideApplicable;
  data['priceOverridden'] = this.priceOverridden;
  data['minValue'] = this.minValue;
  data['maxValue'] = this.maxValue;
  data['productOfferingPriceId'] = this.productOfferingPriceId;
  data['bundleMainProductId'] = this.bundleMainProductId;
  data['cpsRate'] = this.cpsRate;
  data['showTaxes'] = this.showTaxes;
  if (this.taxes != null) {
    data['taxes'] = this.taxes!.map((v) => v.toJson()).toList();
  }
  if (this.discounts != null) {
    data['discounts'] = this.discounts!.map((v) => v.toJson()).toList();
  }
  data['price'] = this.price;
  data['priceWithoutTax'] = this.priceWithoutTax;
  data['priceWithTax'] = this.priceWithTax;
  data['priceWithoutDiscount'] = this.priceWithoutDiscount;
  data['priceWithDiscount'] = this.priceWithDiscount;
  data['totalDiscount'] = this.totalDiscount;
  data['discountPercentage'] = this.discountPercentage;
  data['dutyFreeAmount'] = this.dutyFreeAmount;
  data['unitPrice'] = this.unitPrice;
  data['unitPriceWithoutTax'] = this.unitPriceWithoutTax;
  data['unitTax'] = this.unitTax;
  data['unitDiscount'] = this.unitDiscount;
  data['sellingPrice'] = this.sellingPrice;
  data['sellingUnitPrice'] = this.sellingUnitPrice;
  data['priceWithoutTaxAndDiscount'] = this.priceWithoutTaxAndDiscount;
  data['priceWithoutTaxAndWithDiscount'] =
      this.priceWithoutTaxAndWithDiscount;
  data['unitNetAmount'] = this.unitNetAmount;
  data['totalNetAmount'] = this.totalNetAmount;
  data['wht'] = this.wht;
  data['unitWht'] = this.unitWht;
  data['taxAmount'] = this.taxAmount;
  data['taxRate'] = this.taxRate;
  data['whtPercentage'] = this.whtPercentage;
  data['totalDiscountAmount'] = this.totalDiscountAmount;
  data['cpsAmount'] = this.cpsAmount;
  data['originalPrice'] = this.originalPrice;
  data['subTotal'] = this.subTotal;
  data['brandName'] = this.brandName;
  data['brandId'] = this.brandId;
  data['brandNameDescription'] = this.brandNameDescription;
  data['transTypeName'] = this.transTypeName;
  data['transTypeId'] = this.transTypeId;
  data['transTypeDescription'] = this.transTypeDescription;
  data['payableAmount'] = this.payableAmount;
  data['totalDiscountAmountWithOutTax'] = this.totalDiscountAmountWithOutTax;
  data['totalPriceWithOutTaxAndDiscountWithOutTax'] =
      this.totalPriceWithOutTaxAndDiscountWithOutTax;
  data['bundleOffer'] = this.bundleOffer;
  data['subOffers'] = this.subOffers;
  data['transactionType'] = this.transactionType;
  data['groupQuantity'] = this.groupQuantity;
  data['plantName'] = this.plantName;
  data['plantId'] = this.plantId;
  data['plantDescription'] = this.plantDescription;
  data['storageLocationName'] = this.storageLocationName;
  data['storageLocationId'] = this.storageLocationId;
  data['storageLocationDescription'] = this.storageLocationDescription;
  data['autoRefill'] = this.autoRefill;
  data['startPrice'] = this.startPrice;
  data['endPrice'] = this.endPrice;
  data['mPin'] = this.mPin;
  data['senderUserId'] = this.senderUserId;
  return data;
}