SearchedForum.from constructor

SearchedForum.from({
  1. required String id,
  2. required String title,
  3. required String message,
  4. required double score,
  5. required int votes,
  6. required String commentType,
  7. required int numberOfComments,
  8. required String userId,
  9. required int topicId,
  10. required String topicName,
  11. required String createdAt,
})

Returns the new instance of SearchedForum based on arguments.

Implementation

SearchedForum.from({
  required this.id,
  required this.title,
  required this.message,
  required this.score,
  required this.votes,
  required this.commentType,
  required this.numberOfComments,
  required this.userId,
  required this.topicId,
  required this.topicName,
  required this.createdAt,
});