AutoCompleteModel.fromJson constructor
AutoCompleteModel.fromJson(
- dynamic json
Implementation
AutoCompleteModel.fromJson(dynamic json) {
if (json["predictions"] != null) {
_predictions = [];
json["predictions"].forEach((v) {
_predictions?.add(Predictions.fromJson(v));
});
}
_status = json["status"];
}