RichContent.fromJson constructor
Implementation
RichContent.fromJson(Map<String, dynamic> json) {
carousel = json['carousel'];
if (json['images'] != null) {
images = (json['images'] as List)
.map((item) => CarrouselImagesModel.fromJson(item))
.toList();
}
img1 = json['img1'];
img2 = json['img2'];
img3 = json['img3'];
img4 = json['img4'];
img5 = json['img5'];
}