Predections.fromJson constructor

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

Implementation

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