toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"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)),
"title": title,
"description": description,
"userId": userId,
"contentId": contentId,
"commentId": commentId,
"categoryId": categoryId,
"productId": productId,
"blogId": blogId,
"detail1": detail1,
"detail2": detail2,
"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)),
"hotelId": hotelId,
"hotelRoomId": hotelRoomId,
"dormId": dormId,
"dormRoomId": dormRoomId,
"dormBedId": dormBedId,
};