Predictions.fromJson constructor

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

Implementation

factory Predictions.fromJson(Map<String, dynamic> json) => Predictions(
      predictions: json["predictions"] == null
          ? []
          : List<Prediction>.from(
              json["predictions"]!.map((x) => Prediction.fromJson(x))),
      status: json["status"],
    );