RoofSegmentSummary.fromJson constructor
RoofSegmentSummary.fromJson(
- Map json_
Implementation
RoofSegmentSummary.fromJson(core.Map json_)
: this(
azimuthDegrees: json_.containsKey('azimuthDegrees')
? (json_['azimuthDegrees'] as core.num).toDouble()
: null,
panelsCount: json_.containsKey('panelsCount')
? json_['panelsCount'] as core.int
: null,
pitchDegrees: json_.containsKey('pitchDegrees')
? (json_['pitchDegrees'] as core.num).toDouble()
: null,
segmentIndex: json_.containsKey('segmentIndex')
? json_['segmentIndex'] as core.int
: null,
yearlyEnergyDcKwh: json_.containsKey('yearlyEnergyDcKwh')
? (json_['yearlyEnergyDcKwh'] as core.num).toDouble()
: null,
);