PlaceAutoComplete.fromJson constructor
Creates a PlaceAutoComplete from Google Places API JSON response.
Parses the predictions array into a list of Prediction objects.
Implementation
factory PlaceAutoComplete.fromJson(Map<String, dynamic> json) =>
PlaceAutoComplete(
predictions: List<Prediction>.from(
json["predictions"].map((x) => Prediction.fromJson(x))),
status: json["status"],
);