LookupForecastResponse.fromJson constructor

LookupForecastResponse.fromJson(
  1. Map json_
)

Implementation

LookupForecastResponse.fromJson(core.Map json_)
    : this(
        hourlyForecasts: json_.containsKey('hourlyForecasts')
            ? (json_['hourlyForecasts'] as core.List)
                .map((value) => HourlyForecast.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
      );