SizeAndSunshineStats.fromJson constructor

SizeAndSunshineStats.fromJson(
  1. Map json_
)

Implementation

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