toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "description": description,
  "score": score,
  "reaction": reaction,
  "parentId": parentId,
  "productId": productId,
  "blogId": blogId,
  "userId": userId,
  "creatorId": creatorId,
  "tags": List<dynamic>.from(tags.map((dynamic x) => x)),
  "detail1": detail1,
  "detail2": detail2,
  "id": id,
  "adminUserIds": adminUserIds == null ? <dynamic>[] : List<dynamic>.from(adminUserIds!.map((String x) => x)),
};