RoofSegmentSizeAndSunshineStats.fromJson constructor

RoofSegmentSizeAndSunshineStats.fromJson(
  1. Map json_
)

Implementation

RoofSegmentSizeAndSunshineStats.fromJson(core.Map json_)
    : this(
        azimuthDegrees: json_.containsKey('azimuthDegrees')
            ? (json_['azimuthDegrees'] as core.num).toDouble()
            : null,
        boundingBox: json_.containsKey('boundingBox')
            ? LatLngBox.fromJson(
                json_['boundingBox'] as core.Map<core.String, core.dynamic>)
            : null,
        center: json_.containsKey('center')
            ? LatLng.fromJson(
                json_['center'] as core.Map<core.String, core.dynamic>)
            : null,
        pitchDegrees: json_.containsKey('pitchDegrees')
            ? (json_['pitchDegrees'] as core.num).toDouble()
            : null,
        planeHeightAtCenterMeters:
            json_.containsKey('planeHeightAtCenterMeters')
                ? (json_['planeHeightAtCenterMeters'] as core.num).toDouble()
                : null,
        stats: json_.containsKey('stats')
            ? SizeAndSunshineStats.fromJson(
                json_['stats'] as core.Map<core.String, core.dynamic>)
            : null,
      );