BannerModel.fromJson constructor

BannerModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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