class OffersAndDiscountsResponseModel {
  int? id;
  String? title;
  String? description;
  String? imageUrl;
  String? facilityType; // HMC, HMG, or Both
  String? startDate;
  String? endDate;
  String? discount;
  bool? isActive;

  OffersAndDiscountsResponseModel({
    this.id,
    this.title,
    this.description,
    this.imageUrl,
    this.facilityType,
    this.startDate,
    this.endDate,
    this.discount,
    this.isActive,
  });

  factory OffersAndDiscountsResponseModel.fromJson(Map<String, dynamic> json) {
    return OffersAndDiscountsResponseModel(
      id: json['ID'] as int?,
      title: json['Title'] as String?,
      description: json['Description'] as String?,
      imageUrl: json['ImageURL'] as String?,
      facilityType: json['FacilityType'] as String?,
      startDate: json['StartDate'] as String?,
      endDate: json['EndDate'] as String?,
      discount: json['Discount'] as String?,
      isActive: json['IsActive'] as bool?,
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'ID': id,
      'Title': title,
      'Description': description,
      'ImageURL': imageUrl,
      'FacilityType': facilityType,
      'StartDate': startDate,
      'EndDate': endDate,
      'Discount': discount,
      'IsActive': isActive,
    };
  }
}

