BannerContent.fromJson constructor
Implementation
factory BannerContent.fromJson(Map<String, dynamic> json) {
return BannerContent(
description: json['content'] ?? "",
title: json['title'] ?? '',
image: List<BannerImage>.from(
(json['image'] ?? []).map((x) => BannerImage.fromJson(x))),
video: List<BannerVideo>.from(
(json['video'] ?? []).map((x) => BannerVideo.fromJson(x))),
);
}