AutoCompleteModel.fromJson constructor

AutoCompleteModel.fromJson(
  1. dynamic json
)

Implementation

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