UContentJson.fromMap constructor
UContentJson.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UContentJson.fromMap(Map<String, dynamic> json) => UContentJson(
title: json["title"],
detail1: json["detail1"],
detail2: json["detail2"],
imageBase64: json["imageBase64"],
iconBase64: json["iconBase64"],
buttonText: json["buttonText"],
buttonLink: json["buttonLink"],
link: json["link"],
order: json["order"],
instagram: json["instagram"],
telegram: json["telegram"],
whatsapp: json["whatsapp"],
phone: json["phone"],
subTitle: json["subTitle"],
description: json["description"],
links: json["links"] == null ? <UContentLink>[] : List<UContentLink>.from(json["links"].map((dynamic x) => UContentLink.fromMap(x))),
items: json["items"] == null ? <UContentItem>[] : List<UContentItem>.from(json["items"].map((dynamic x) => UContentItem.fromMap(x))),
);