toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "id": id,
      "name": name,
      "slug": slug,
      "description": description,
      "banner_image": bannerImage,
      "is_active": isActive,
      "allow_posts": allowPosts,
      "moderate_posts": moderatePosts,
      "app": app?.toJson(),
      "created_at": createdAt?.toIso8601String(),
      "updated_at": updatedAt?.toIso8601String(),
    };