toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "id": id,
  "title": title,
  "detail1": detail1,
  "detail2": detail2,
  "imageBase64": imageBase64,
  "iconBase64": iconBase64,
  "buttonText": buttonText,
  "buttonLink": buttonLink,
  "link": link,
  "order": order,
  "instagram": instagram,
  "addTags": addTags == null ? null : List<dynamic>.from(addTags!.map((dynamic x) => x)),
  "removeTags": removeTags == null ? null : List<dynamic>.from(removeTags!.map((dynamic x) => x)),
  "tags": tags == null ? <dynamic>[] : List<dynamic>.from(tags!.map((int x) => x)),
  "adminUserIds": adminUserIds == null ? <dynamic>[] : List<dynamic>.from(adminUserIds!.map((String x) => x)),
  "addAdminUserIds": addAdminUserIds == null ? <dynamic>[] : List<dynamic>.from(addAdminUserIds!.map((String x) => x)),
  "removeAdminUserIds": removeAdminUserIds == null ? <dynamic>[] : List<dynamic>.from(removeAdminUserIds!.map((String x) => x)),
  "description": description,
  "subTitle": subTitle,
  "telegram": telegram,
  "whatsapp": whatsapp,
  "phone": phone,
  "links": links == null ? null : List<dynamic>.from(links!.map((UContentLink x) => x.toMap())),
  "items": items == null ? null : List<dynamic>.from(items!.map((UContentItem x) => x.toMap())),
  "creatorId": creatorId,
  "media": media == null ? <dynamic>[] : List<dynamic>.from(media!.map((String x) => x)),
};