UContentUpdateParams.fromMap constructor
UContentUpdateParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UContentUpdateParams.fromMap(Map<String, dynamic> json) => UContentUpdateParams(
id: json["id"],
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"],
addTags: json["addTags"] == null ? null : List<int>.from(json["addTags"].map((dynamic x) => x)),
removeTags: json["removeTags"] == null ? null : List<int>.from(json["removeTags"].map((dynamic x) => x)),
tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
addAdminUserIds: json["addAdminUserIds"] == null ? <String>[] : List<String>.from(json["addAdminUserIds"]!.map((dynamic x) => x)),
removeAdminUserIds: json["removeAdminUserIds"] == null ? <String>[] : List<String>.from(json["removeAdminUserIds"]!.map((dynamic x) => x)),
description: json["description"],
subTitle: json["subTitle"],
telegram: json["telegram"],
whatsapp: json["whatsapp"],
phone: json["phone"],
links: json["links"] == null ? null : List<UContentLink>.from(json["links"].map((dynamic x) => UContentLink.fromMap(x))),
items: json["items"] == null ? null : List<UContentItem>.from(json["items"].map((dynamic x) => UContentItem.fromMap(x))),
creatorId: json["creatorId"],
media: json["media"] == null ? <String>[] : List<String>.from(json["media"]!.map((dynamic x) => x)),
);