LookupHistoryRequest.fromJson constructor
LookupHistoryRequest.fromJson(
- Map json_
Implementation
LookupHistoryRequest.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,
hours: json_.containsKey('hours') ? json_['hours'] as core.int : 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,
);