You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
342 B
Dart
11 lines
342 B
Dart
class PlacePrediction {
|
|
final String description;
|
|
final String placeID;
|
|
PlacePrediction({required this.description, required this.placeID});
|
|
factory PlacePrediction.fromJson(Map<String, dynamic> json) {
|
|
return PlacePrediction(
|
|
description: json['description'] ?? '',
|
|
placeID: json['place_id'] ?? '',
|
|
);
|
|
}
|
|
} |