Open HelloFro opened 1 year ago
simple fix:
factory BusinessSearched.fromMap(Map<String, dynamic>? map) { if (map == null) return BusinessSearched(); return BusinessSearched( categories: Categories.fromList(map['categories']), coordinates: Coordinates.fromMap(map['coordinates']), displayPhone: map['displayPhone'], // needs to be 'display_phone' distance: map['distance'], id: map['id'], alias: map['alias'], imageUrl: map['image_url'], location: Location.fromMap(map['location']), name: map['name'], phone: map['phone'], price: map['price'], rating: map['rating'], reviewCount: map['reviewCount'], // needs to be 'review_count' url: map['url'], transactions: List<String>.from(map['transactions']), ); }
fetchBusinessSearch() BusinessSearched dispalyPhone and reviewCount always null #13
simple fix: