toJson method

  1. @override
Map<String, dynamic> toJson([
  1. dynamic extra
])
override

Implementation

@override
Map<String, dynamic> toJson([dynamic extra]) {
  return {
    "@type": CONSTRUCTOR,
    "chat_id": chatId,
    "accessible_for": accessibleFor,
    "type": type.toJson(),
    "title": title,
    "photo": photo?.toJson(),
    "description": description,
    "member_count": memberCount,
    "member_user_ids": memberUserIds.map((i) => i).toList(),
    "creates_join_request": createsJoinRequest,
    "is_public": isPublic,
  };
}