class AdsDurationModel {
  int? id;
  String? name;
  int? days;
  double? price;
  int? countryID;
  bool? isActive;
  String? countryName;
  String? currency;
  bool? isSelected;

  AdsDurationModel({
    this.id,
    this.name,
    this.days,
    this.price,
    this.countryID,
    this.isActive,
    this.countryName,
    this.currency,
    this.isSelected,
  });

  AdsDurationModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    days = json['days'];
    price = json['price'];
    countryID = json['countryID'];
    isActive = json['isActive'];
    countryName = json['countryName'];
    currency = json['currency'];
    isSelected = false;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['id'] = id;
    data['name'] = name;
    data['days'] = days;
    data['price'] = price;
    data['countryID'] = countryID;
    data['isActive'] = isActive;
    data['countryName'] = countryName;
    data['currency'] = currency;
    return data;
  }
}
