fix object type error
This commit is contained in:
parent
a17291d90a
commit
635f1e68eb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue