AirQualityIndex.fromJson constructor
AirQualityIndex.fromJson(
- Map json_
Implementation
AirQualityIndex.fromJson(core.Map json_)
: this(
aqi: json_.containsKey('aqi') ? json_['aqi'] as core.int : null,
aqiDisplay: json_.containsKey('aqiDisplay')
? json_['aqiDisplay'] as core.String
: null,
category: json_.containsKey('category')
? json_['category'] as core.String
: null,
code: json_.containsKey('code') ? json_['code'] as core.String : null,
color: json_.containsKey('color')
? Color.fromJson(
json_['color'] as core.Map<core.String, core.dynamic>)
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
dominantPollutant: json_.containsKey('dominantPollutant')
? json_['dominantPollutant'] as core.String
: null,
);