class GooglePlaceResponseModel { List? predictions; String? status; GooglePlaceResponseModel({this.predictions, this.status}); GooglePlaceResponseModel.fromJson(Map json) { if (json['predictions'] != null) { predictions = []; json['predictions'].forEach((v) { predictions!.add(Predictions.fromJson(v)); }); } status = json['status']; } Map toJson() { final Map data = {}; if (predictions != null) { data['predictions'] = predictions!.map((v) => v.toJson()).toList(); } data['status'] = status; return data; } } class Predictions { String? description; String? placeId; String? reference; Predictions({ this.description, this.placeId, this.reference, }); Predictions.fromJson(Map json) { description = json['description']; placeId = json['place_id']; reference = json['reference']; } Map toJson() { final Map data = {}; data['description'] = description; data['place_id'] = placeId; data['reference'] = reference; return data; } }