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.
car_common_app/lib/models/advertisment_models/ads_duration_model.dart

41 lines
900 B
Dart

class AdsDurationModel {
int? id;
String? name;
int? days;
double? price;
int? countryID;
bool? isActive;
String? countryName;
AdsDurationModel(
{this.id,
this.name,
this.days,
this.price,
this.countryID,
this.isActive,
this.countryName});
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'];
}
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;
}
}