LookupForecastRequest.fromJson constructor

LookupForecastRequest.fromJson(
  1. Map json_
)

Implementation

LookupForecastRequest.fromJson(core.Map json_)
    : this(
        customLocalAqis: json_.containsKey('customLocalAqis')
            ? (json_['customLocalAqis'] as core.List)
                .map((value) => CustomLocalAqi.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dateTime: json_.containsKey('dateTime')
            ? json_['dateTime'] as core.String
            : null,
        extraComputations: json_.containsKey('extraComputations')
            ? (json_['extraComputations'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        location: json_.containsKey('location')
            ? LatLng.fromJson(
                json_['location'] as core.Map<core.String, core.dynamic>)
            : null,
        pageSize: json_.containsKey('pageSize')
            ? json_['pageSize'] as core.int
            : null,
        pageToken: json_.containsKey('pageToken')
            ? json_['pageToken'] as core.String
            : null,
        period: json_.containsKey('period')
            ? Interval.fromJson(
                json_['period'] as core.Map<core.String, core.dynamic>)
            : null,
        uaqiColorPalette: json_.containsKey('uaqiColorPalette')
            ? json_['uaqiColorPalette'] as core.String
            : null,
        universalAqi: json_.containsKey('universalAqi')
            ? json_['universalAqi'] as core.bool
            : null,
      );