ListForecastsResponse.fromJson constructor

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

Implementation

factory ListForecastsResponse.fromJson(Map<String, dynamic> json) {
  return ListForecastsResponse(
    forecasts: (json['Forecasts'] as List?)
        ?.whereNotNull()
        .map((e) => ForecastSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}