toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "title": title,
  "subtitle": subtitle,
  "link": link,
  "location": location,
  "type": type,
  "order": order,
  "phoneNumber": phoneNumber,
  "address": address,
  "code": code,
  "parentId": parentId,
  "relatedProducts": relatedProducts == null ? null : List<dynamic>.from(relatedProducts!.map((String x) => x)),
  "id": id,
  "addTags": addTags == null ? null : List<dynamic>.from(addTags!.map((int x) => x)),
  "removeTags": removeTags == null ? null : List<dynamic>.from(removeTags!.map((int x) => x)),
  "tags": tags == null ? null : List<dynamic>.from(tags!.map((int x) => x)),
  "detail1": detail1,
  "detail2": detail2,
  "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)),
  "media": media == null ? <dynamic>[] : List<dynamic>.from(media!.map((String x) => x)),
};