PlacesAutocompleteResponse.fromJson constructor

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

Implementation

PlacesAutocompleteResponse.fromJson(Map<String, dynamic> json) {
  if (json['predictions'] != null) {
    predictions = [];
    json['predictions'].forEach((v) {
      predictions!.add(new Prediction.fromJson(v));
    });
  }
  status = json['status'];
}