Forecast.fromJson constructor
Implementation
factory Forecast.fromJson(Map<String, dynamic> json) {
return Forecast(
predictions: (json['Predictions'] as Map<String, dynamic>?)?.map((k, e) =>
MapEntry(
k,
(e as List)
.whereNotNull()
.map((e) => DataPoint.fromJson(e as Map<String, dynamic>))
.toList())),
);
}