fix object type error
This commit is contained in:
@@ -162,7 +162,7 @@ class MihMzansiDirectoryServices {
|
|||||||
if (response.statusCode == 200) {
|
if (response.statusCode == 200) {
|
||||||
Iterable l = jsonDecode(response.body);
|
Iterable l = jsonDecode(response.body);
|
||||||
List<BookmarkedBusiness> businessReviews = List<BookmarkedBusiness>.from(
|
List<BookmarkedBusiness> businessReviews = List<BookmarkedBusiness>.from(
|
||||||
l.map((model) => BusinessReview.fromJson(model)));
|
l.map((model) => BookmarkedBusiness.fromJson(model)));
|
||||||
return businessReviews;
|
return businessReviews;
|
||||||
} else if (response.statusCode == 404) {
|
} else if (response.statusCode == 404) {
|
||||||
return [];
|
return [];
|
||||||
|
|||||||
Reference in New Issue
Block a user