Skip to content

Commit

Permalink
fixed #82
Browse files Browse the repository at this point in the history
  • Loading branch information
Ketan Choyal authored and ketanchoyal committed Jan 18, 2024
1 parent 24af292 commit 8c55aa0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [4.2.1] - 18 Jan 2024
- Fixed `externalIds` in `SuggestionResponse` class. Mapbox has changed the response for `externalIds` and it can be nullable now.


# [4.2.0] - 26 Nov 2023
- Huge code refactoring by [@LorenzSchueler](https://github.com/LorenzSchueler). Json parsing is now done using [json_serializable](https://pub.dev/packages/json_serializable) and [json_annotation](https://pub.dev/packages/json_annotation) packages.

Expand Down
4 changes: 2 additions & 2 deletions lib/models/suggestion_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Suggestion {
required this.context,
required this.language,
required this.maki,
required this.externalIds,
this.externalIds,
this.poiCategory,
this.poiCategoryIds,
this.brand,
Expand All @@ -51,7 +51,7 @@ class Suggestion {
final Context? context;
final String language;
final String? maki;
final ExternalIds externalIds;
final ExternalIds? externalIds;
final List<String>? poiCategory;
final List<String>? poiCategoryIds;
final List<String>? brand;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mapbox_search
description: A Flutter package for place search using MapBox Api and for Static map image
version: 4.2.0
version: 4.2.1

homepage: https://github.com/ketanchoyal/mapbox_search

Expand Down

0 comments on commit 8c55aa0

Please sign in to comment.