class OffersListModel {
  int? offersDiscountId;
  String? titleEn;
  String? titleAr;
  String? descriptionEn;
  String? descriptionAr;
  String? startDate;
  String? endDate;
  int? categoryId;
  String? categoryNameEn;
  String? categoryNameAr;
  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? bannerImage;
  String? logo;
  bool? isActive;
  int? pageSize;
  int? pageNo;
  int? languageId;

  OffersListModel(
      {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) {
    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'];
    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'];
    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['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['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['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;
  }
}
