PostModel constructor

PostModel({
  1. required int id,
  2. required UserModel user,
  3. DateTime? createdAt,
  4. String? title,
  5. String? description,
  6. String? type,
  7. String? attachedUrl,
  8. int? reportsSum,
  9. bool? isArchive,
  10. PollQuestionModel? pollQuestion,
})

Implementation

PostModel({
  required this.id,
  required this.user,
  this.createdAt,
  this.title,
  this.description,
  this.type,
  this.attachedUrl,
  this.reportsSum,
  this.isArchive,
  this.pollQuestion,
});