Offers and discount and Item for sale changes done.
							parent
							
								
									e65d876223
								
							
						
					
					
						commit
						3b2ef69f7c
					
				| @ -1,96 +1,192 @@ | ||||
| class OffersListModel { | ||||
|   String? title; | ||||
|   String? titleAR; | ||||
|   String? description; | ||||
|   String? descriptionAR; | ||||
|   int? offersDiscountId; | ||||
|   String? titleEn; | ||||
|   String? titleAr; | ||||
|   String? descriptionEn; | ||||
|   String? descriptionAr; | ||||
|   String? startDate; | ||||
|   String? endDate; | ||||
|   String? logo; | ||||
|   String? bannerImage; | ||||
|   String? discount; | ||||
|   String? rowID; | ||||
|   int? categoryId; | ||||
|   String? categoryNameEn; | ||||
|   String? categoryNameAr; | ||||
|   String? categoryID; | ||||
|   String? isHasLocation; | ||||
|   String? discount; | ||||
|   String? location; | ||||
|   int? statusId; | ||||
|   String? statusTitle; | ||||
|   bool? isHasLocation; | ||||
|   String? discountDescription; | ||||
|   String? websiteUrl; | ||||
|   bool? bookMarked; | ||||
|   bool? isHotDeal; | ||||
|   List<OffersDiscountImageColl>? offersDiscountImageColl; | ||||
|   dynamic locationList; | ||||
|   String? created; | ||||
|   String? publishedDesc; | ||||
|   String? published; | ||||
|   String? expireAfter; | ||||
|   String? status; | ||||
|   String? isActive; | ||||
|   String? totalItems; | ||||
|   String? bannerImage; | ||||
|   String? logo; | ||||
|   bool? isActive; | ||||
|   int? pageSize; | ||||
|   int? pageNo; | ||||
|   int? languageId; | ||||
| 
 | ||||
|   OffersListModel( | ||||
|       {this.title, | ||||
|         this.titleAR, | ||||
|         this.description, | ||||
|         this.descriptionAR, | ||||
|         this.startDate, | ||||
|         this.endDate, | ||||
|         this.logo, | ||||
|         this.bannerImage, | ||||
|         this.discount, | ||||
|         this.rowID, | ||||
|         this.categoryNameEn, | ||||
|         this.categoryNameAr, | ||||
|         this.categoryID, | ||||
|         this.isHasLocation, | ||||
|         this.created, | ||||
|         this.publishedDesc, | ||||
|         this.published, | ||||
|         this.expireAfter, | ||||
|         this.status, | ||||
|         this.isActive, | ||||
|         this.totalItems}); | ||||
|       {this.offersDiscountId, | ||||
|       this.titleEn, | ||||
|       this.titleAr, | ||||
|       this.descriptionEn, | ||||
|       this.descriptionAr, | ||||
|       this.startDate, | ||||
|       this.endDate, | ||||
|       this.categoryId, | ||||
|       this.categoryNameEn, | ||||
|       this.categoryNameAr, | ||||
|       this.discount, | ||||
|       this.location, | ||||
|       this.statusId, | ||||
|       this.statusTitle, | ||||
|       this.isHasLocation, | ||||
|       this.discountDescription, | ||||
|       this.websiteUrl, | ||||
|       this.bookMarked, | ||||
|       this.isHotDeal, | ||||
|       this.offersDiscountImageColl, | ||||
|       this.locationList, | ||||
|       this.created, | ||||
|       this.bannerImage, | ||||
|       this.logo, | ||||
|       this.isActive, | ||||
|       this.pageSize, | ||||
|       this.pageNo, | ||||
|       this.languageId}); | ||||
| 
 | ||||
|   OffersListModel.fromJson(Map<String, dynamic> json) { | ||||
|     title = json['Title']; | ||||
|     titleAR = json['Title_AR']; | ||||
|     description = json['Description']; | ||||
|     descriptionAR = json['Description_AR']; | ||||
|     startDate = json['Start Date']; | ||||
|     endDate = json['End Date']; | ||||
|     logo = json['Logo']; | ||||
|     bannerImage = json['Banner_Image']; | ||||
|     discount = json['Discount']; | ||||
|     rowID = json['rowID']; | ||||
|     offersDiscountId = json['offersDiscountId']; | ||||
|     titleEn = json['titleEn']; | ||||
|     titleAr = json['titleAr']; | ||||
|     descriptionEn = json['descriptionEn']; | ||||
|     descriptionAr = json['descriptionAr']; | ||||
|     startDate = json['startDate']; | ||||
|     endDate = json['endDate']; | ||||
|     categoryId = json['categoryId']; | ||||
|     categoryNameEn = json['categoryName_en']; | ||||
|     categoryNameAr = json['categoryName_ar']; | ||||
|     categoryID = json['categoryID']; | ||||
|     isHasLocation = json['IsHasLocation']; | ||||
|     discount = json['discount']; | ||||
|     location = json['location']; | ||||
|     statusId = json['statusId']; | ||||
|     statusTitle = json['statusTitle']; | ||||
|     isHasLocation = json['isHasLocation']; | ||||
|     discountDescription = json['discountDescription']; | ||||
|     websiteUrl = json['websiteUrl']; | ||||
|     bookMarked = json['bookMarked']; | ||||
|     isHotDeal = json['isHotDeal']; | ||||
|     if (json['offersDiscountImageColl'] != null) { | ||||
|       offersDiscountImageColl = <OffersDiscountImageColl>[]; | ||||
|       json['offersDiscountImageColl'].forEach((v) { | ||||
|         offersDiscountImageColl!.add(new OffersDiscountImageColl.fromJson(v)); | ||||
|       }); | ||||
|     } | ||||
|     locationList = json['locationList']; | ||||
|     created = json['created']; | ||||
|     publishedDesc = json['PublishedDesc']; | ||||
|     published = json['Published']; | ||||
|     expireAfter = json['ExpireAfter']; | ||||
|     status = json['Status']; | ||||
|     isActive = json['IsActive']; | ||||
|     totalItems = json['TotalItems']; | ||||
|     bannerImage = json['banner_Image']; | ||||
|     logo = json['logo']; | ||||
|     isActive = json['isActive']; | ||||
|     pageSize = json['pageSize']; | ||||
|     pageNo = json['pageNo']; | ||||
|     languageId = json['languageId']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['Title'] = this.title; | ||||
|     data['Title_AR'] = this.titleAR; | ||||
|     data['Description'] = this.description; | ||||
|     data['Description_AR'] = this.descriptionAR; | ||||
|     data['Start Date'] = this.startDate; | ||||
|     data['End Date'] = this.endDate; | ||||
|     data['Logo'] = this.logo; | ||||
|     data['Banner_Image'] = this.bannerImage; | ||||
|     data['Discount'] = this.discount; | ||||
|     data['rowID'] = this.rowID; | ||||
|     data['offersDiscountId'] = this.offersDiscountId; | ||||
|     data['titleEn'] = this.titleEn; | ||||
|     data['titleAr'] = this.titleAr; | ||||
|     data['descriptionEn'] = this.descriptionEn; | ||||
|     data['descriptionAr'] = this.descriptionAr; | ||||
|     data['startDate'] = this.startDate; | ||||
|     data['endDate'] = this.endDate; | ||||
|     data['categoryId'] = this.categoryId; | ||||
|     data['categoryName_en'] = this.categoryNameEn; | ||||
|     data['categoryName_ar'] = this.categoryNameAr; | ||||
|     data['categoryID'] = this.categoryID; | ||||
|     data['IsHasLocation'] = this.isHasLocation; | ||||
|     data['discount'] = this.discount; | ||||
|     data['location'] = this.location; | ||||
|     data['statusId'] = this.statusId; | ||||
|     data['statusTitle'] = this.statusTitle; | ||||
|     data['isHasLocation'] = this.isHasLocation; | ||||
|     data['discountDescription'] = this.discountDescription; | ||||
|     data['websiteUrl'] = this.websiteUrl; | ||||
|     data['bookMarked'] = this.bookMarked; | ||||
|     data['isHotDeal'] = this.isHotDeal; | ||||
|     if (this.offersDiscountImageColl != null) { | ||||
|       data['offersDiscountImageColl'] = this.offersDiscountImageColl!.map((v) => v.toJson()).toList(); | ||||
|     } | ||||
|     data['locationList'] = this.locationList; | ||||
|     data['created'] = this.created; | ||||
|     data['PublishedDesc'] = this.publishedDesc; | ||||
|     data['Published'] = this.published; | ||||
|     data['ExpireAfter'] = this.expireAfter; | ||||
|     data['Status'] = this.status; | ||||
|     data['IsActive'] = this.isActive; | ||||
|     data['TotalItems'] = this.totalItems; | ||||
|     data['banner_Image'] = this.bannerImage; | ||||
|     data['logo'] = this.logo; | ||||
|     data['isActive'] = this.isActive; | ||||
|     data['pageSize'] = this.pageSize; | ||||
|     data['pageNo'] = this.pageNo; | ||||
|     data['languageId'] = this.languageId; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
| 
 | ||||
| class OffersDiscountImageColl { | ||||
|   int? imageAttachmentId; | ||||
|   String? fileName; | ||||
|   String? contentType; | ||||
|   String? attachFileStream; | ||||
|   String? base64String; | ||||
|   int? referenceItemId; | ||||
|   String? filePath; | ||||
|   String? imageTag; | ||||
|   bool? isActive; | ||||
|   int? pageSize; | ||||
|   int? pageNo; | ||||
|   int? languageId; | ||||
| 
 | ||||
|   OffersDiscountImageColl( | ||||
|       {this.imageAttachmentId, | ||||
|       this.fileName, | ||||
|       this.contentType, | ||||
|       this.attachFileStream, | ||||
|       this.base64String, | ||||
|       this.referenceItemId, | ||||
|       this.filePath, | ||||
|       this.imageTag, | ||||
|       this.isActive, | ||||
|       this.pageSize, | ||||
|       this.pageNo, | ||||
|       this.languageId}); | ||||
| 
 | ||||
|   OffersDiscountImageColl.fromJson(Map<String, dynamic> json) { | ||||
|     imageAttachmentId = json['imageAttachmentId']; | ||||
|     fileName = json['fileName']; | ||||
|     contentType = json['contentType']; | ||||
|     attachFileStream = json['attachFileStream']; | ||||
|     base64String = json['base64String']; | ||||
|     referenceItemId = json['referenceItemId']; | ||||
|     filePath = json['filePath']; | ||||
|     imageTag = json['imageTag']; | ||||
|     isActive = json['isActive']; | ||||
|     pageSize = json['pageSize']; | ||||
|     pageNo = json['pageNo']; | ||||
|     languageId = json['languageId']; | ||||
|   } | ||||
| 
 | ||||
|   Map<String, dynamic> toJson() { | ||||
|     Map<String, dynamic> data = new Map<String, dynamic>(); | ||||
|     data['imageAttachmentId'] = this.imageAttachmentId; | ||||
|     data['fileName'] = this.fileName; | ||||
|     data['contentType'] = this.contentType; | ||||
|     data['attachFileStream'] = this.attachFileStream; | ||||
|     data['base64String'] = this.base64String; | ||||
|     data['referenceItemId'] = this.referenceItemId; | ||||
|     data['filePath'] = this.filePath; | ||||
|     data['imageTag'] = this.imageTag; | ||||
|     data['isActive'] = this.isActive; | ||||
|     data['pageSize'] = this.pageSize; | ||||
|     data['pageNo'] = this.pageNo; | ||||
|     data['languageId'] = this.languageId; | ||||
|     return data; | ||||
|   } | ||||
| } | ||||
|  | ||||
					Loading…
					
					
				
		Reference in New Issue
	
	 Sultan khan
						Sultan khan