BannerModel.fromJson(Map<String, dynamic> json) { if (json['banners'] != null) { banners = <Banners>[]; json['banners'].forEach((v) { banners.add(Banners.fromJson(v)); }); } }