Predictions.fromJson constructor

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

Implementation

factory Predictions.fromJson(Map<String, dynamic> json) =>
    Predictions.prediction(
      type: json["type"],
      query: List<dynamic>.from(json["query"].map((x) => x)),
      features: List<MapBoxPlace>.from(
          json["features"].map((x) => MapBoxPlace.fromJson(x))),
    );