SizeAndSunshineStats.fromJson constructor
SizeAndSunshineStats.fromJson(
- Map json_
Implementation
SizeAndSunshineStats.fromJson(core.Map json_)
: this(
areaMeters2: json_.containsKey('areaMeters2')
? (json_['areaMeters2'] as core.num).toDouble()
: null,
groundAreaMeters2: json_.containsKey('groundAreaMeters2')
? (json_['groundAreaMeters2'] as core.num).toDouble()
: null,
sunshineQuantiles: json_.containsKey('sunshineQuantiles')
? (json_['sunshineQuantiles'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
);