PlacesResponse.fromJson constructor

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

Implementation

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