PlacePredictions.fromJson constructor

PlacePredictions.fromJson(
  1. Map<String, dynamic> json
)

Implementation

PlacePredictions.fromJson(Map<String, dynamic> json) {
  place_id = json["place_id"];
  secondary_text = json["structured_formatting"]["secondary_text"];
  main_text = json["structured_formatting"]["main_text"];
}