LookupCurrentConditionsRequest.fromJson constructor

LookupCurrentConditionsRequest.fromJson(
  1. Map json_
)

Implementation

LookupCurrentConditionsRequest.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,
        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,
        uaqiColorPalette: json_.containsKey('uaqiColorPalette')
            ? json_['uaqiColorPalette'] as core.String
            : null,
        universalAqi: json_.containsKey('universalAqi')
            ? json_['universalAqi'] as core.bool
            : null,
      );