PlacesPredictions.fromJson constructor

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

Implementation

PlacesPredictions.fromJson(Map<String, dynamic> json) {
  status = json['status'];
  predictions = json.containsKey('predictions') && json['predictions'] != null
      ? (json['predictions'] as List).map((data) => PlaceResponse.fromJson(data)).toList(): null;
}