toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      "userId": userId,
      "contentId": contentId,
      "commentId": commentId,
      "categoryId": categoryId,
      "productId": productId,
      "title": title,
      "description": description,
      "tags": tags == null ? null : List<dynamic>.from(tags!.map((int x) => x)),
    };