From 3c66d96855c6a42bd3eb8c1f9ae28b3f0153a3d4 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Wed, 30 Jul 2025 10:52:28 +0200 Subject: [PATCH] add business name to obj --- .../lib/mih_components/mih_objects/bookmarked_business.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Frontend/lib/mih_components/mih_objects/bookmarked_business.dart b/Frontend/lib/mih_components/mih_objects/bookmarked_business.dart index c4180e5c..9674858e 100644 --- a/Frontend/lib/mih_components/mih_objects/bookmarked_business.dart +++ b/Frontend/lib/mih_components/mih_objects/bookmarked_business.dart @@ -2,12 +2,14 @@ class BookmarkedBusiness { final int idbookmarked_businesses; final String app_id; final String business_id; + final String business_name; final String created_date; BookmarkedBusiness({ required this.idbookmarked_businesses, required this.app_id, required this.business_id, + required this.business_name, required this.created_date, }); factory BookmarkedBusiness.fromJson(Map json) { @@ -16,12 +18,14 @@ class BookmarkedBusiness { "idbookmarked_businesses": int idbookmarked_businesses, "app_id": String app_id, "business_id": String business_id, + "business_name": String business_name, "created_date": String created_date, } => BookmarkedBusiness( idbookmarked_businesses: idbookmarked_businesses, app_id: app_id, business_id: business_id, + business_name: business_name, created_date: created_date, ), _ => throw const FormatException(