Community constructor

Community({
  1. required int id,
  2. required String name,
  3. required String slug,
  4. String? description,
  5. String? bannerImage,
  6. bool? isActive,
  7. bool? allowPosts,
  8. bool? moderatePosts,
  9. CommunityApp? app,
  10. DateTime? createdAt,
  11. DateTime? updatedAt,
})

Implementation

Community({
  required this.id,
  required this.name,
  required this.slug,
  this.description,
  this.bannerImage,
  this.isActive,
  this.allowPosts,
  this.moderatePosts,
  this.app,
  this.createdAt,
  this.updatedAt,
});