SolarPanel.fromJson constructor

SolarPanel.fromJson(
  1. Map json_
)

Implementation

SolarPanel.fromJson(core.Map json_)
  : this(
      center:
          json_.containsKey('center')
              ? LatLng.fromJson(
                json_['center'] as core.Map<core.String, core.dynamic>,
              )
              : null,
      orientation: json_['orientation'] as core.String?,
      segmentIndex: json_['segmentIndex'] as core.int?,
      yearlyEnergyDcKwh:
          (json_['yearlyEnergyDcKwh'] as core.num?)?.toDouble(),
    );