class BannersModel {
bool? status;
List<Banners>? banners;
BannersModel({this.status, this.banners});
BannersModel.fromJson(Map<String, dynamic> json) {
status = json['status'];
if (json['banners'] != null) {
banners = <Banners>[];
json['banners'].forEach((v) {
banners!.add(new Banners.fromJson(v));
});
}
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['status'] = this.status;
if (this.banners != null) {
data['banners'] = this.banners!.map((v) => v.toJson()).toList();
}
return data;
}
}
class Banners {
String? id;
String? image;
Banners({this.id, this.image});
Banners.fromJson(Map<String, dynamic> json) {
id = json['id'];
image = json['image'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['image'] = this.image;
return data;
}
}