DayInfo.fromJson constructor
DayInfo.fromJson(
- Map json_
Implementation
DayInfo.fromJson(core.Map json_)
: this(
date: json_.containsKey('date')
? Date.fromJson(
json_['date'] as core.Map<core.String, core.dynamic>)
: null,
plantInfo: json_.containsKey('plantInfo')
? (json_['plantInfo'] as core.List)
.map((value) => PlantInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pollenTypeInfo: json_.containsKey('pollenTypeInfo')
? (json_['pollenTypeInfo'] as core.List)
.map((value) => PollenTypeInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);