EnergyEfficiency.fromJson constructor

EnergyEfficiency.fromJson(
  1. Map json_
)

Implementation

EnergyEfficiency.fromJson(core.Map json_)
    : this(
        carbonFreeEnergySources: json_.containsKey('carbonFreeEnergySources')
            ? json_['carbonFreeEnergySources'] as core.bool
            : null,
        carbonFreeEnergySourcesException:
            json_.containsKey('carbonFreeEnergySourcesException')
                ? json_['carbonFreeEnergySourcesException'] as core.String
                : null,
        energyConservationProgram:
            json_.containsKey('energyConservationProgram')
                ? json_['energyConservationProgram'] as core.bool
                : null,
        energyConservationProgramException:
            json_.containsKey('energyConservationProgramException')
                ? json_['energyConservationProgramException'] as core.String
                : null,
        energyEfficientHeatingAndCoolingSystems: json_
                .containsKey('energyEfficientHeatingAndCoolingSystems')
            ? json_['energyEfficientHeatingAndCoolingSystems'] as core.bool
            : null,
        energyEfficientHeatingAndCoolingSystemsException: json_.containsKey(
                'energyEfficientHeatingAndCoolingSystemsException')
            ? json_['energyEfficientHeatingAndCoolingSystemsException']
                as core.String
            : null,
        energyEfficientLighting: json_.containsKey('energyEfficientLighting')
            ? json_['energyEfficientLighting'] as core.bool
            : null,
        energyEfficientLightingException:
            json_.containsKey('energyEfficientLightingException')
                ? json_['energyEfficientLightingException'] as core.String
                : null,
        energySavingThermostats: json_.containsKey('energySavingThermostats')
            ? json_['energySavingThermostats'] as core.bool
            : null,
        energySavingThermostatsException:
            json_.containsKey('energySavingThermostatsException')
                ? json_['energySavingThermostatsException'] as core.String
                : null,
        greenBuildingDesign: json_.containsKey('greenBuildingDesign')
            ? json_['greenBuildingDesign'] as core.bool
            : null,
        greenBuildingDesignException:
            json_.containsKey('greenBuildingDesignException')
                ? json_['greenBuildingDesignException'] as core.String
                : null,
        independentOrganizationAuditsEnergyUse:
            json_.containsKey('independentOrganizationAuditsEnergyUse')
                ? json_['independentOrganizationAuditsEnergyUse'] as core.bool
                : null,
        independentOrganizationAuditsEnergyUseException: json_.containsKey(
                'independentOrganizationAuditsEnergyUseException')
            ? json_['independentOrganizationAuditsEnergyUseException']
                as core.String
            : null,
      );