You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
906 B
Dart
36 lines
906 B
Dart
class AdsDurationModel {
|
|
int? id;
|
|
String? name;
|
|
int? days;
|
|
double? price;
|
|
int? countryID;
|
|
bool? isActive;
|
|
String? countryName;
|
|
bool? isSelected;
|
|
|
|
AdsDurationModel({this.id, this.name, this.days, this.price, this.countryID, this.isActive, this.countryName, 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'];
|
|
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;
|
|
return data;
|
|
}
|
|
}
|