WaterConservation.fromJson constructor

WaterConservation.fromJson(
  1. Map json_
)

Implementation

WaterConservation.fromJson(core.Map json_)
    : this(
        independentOrganizationAuditsWaterUse:
            json_.containsKey('independentOrganizationAuditsWaterUse')
                ? json_['independentOrganizationAuditsWaterUse'] as core.bool
                : null,
        independentOrganizationAuditsWaterUseException: json_
                .containsKey('independentOrganizationAuditsWaterUseException')
            ? json_['independentOrganizationAuditsWaterUseException']
                as core.String
            : null,
        linenReuseProgram: json_.containsKey('linenReuseProgram')
            ? json_['linenReuseProgram'] as core.bool
            : null,
        linenReuseProgramException:
            json_.containsKey('linenReuseProgramException')
                ? json_['linenReuseProgramException'] as core.String
                : null,
        towelReuseProgram: json_.containsKey('towelReuseProgram')
            ? json_['towelReuseProgram'] as core.bool
            : null,
        towelReuseProgramException:
            json_.containsKey('towelReuseProgramException')
                ? json_['towelReuseProgramException'] as core.String
                : null,
        waterSavingShowers: json_.containsKey('waterSavingShowers')
            ? json_['waterSavingShowers'] as core.bool
            : null,
        waterSavingShowersException:
            json_.containsKey('waterSavingShowersException')
                ? json_['waterSavingShowersException'] as core.String
                : null,
        waterSavingSinks: json_.containsKey('waterSavingSinks')
            ? json_['waterSavingSinks'] as core.bool
            : null,
        waterSavingSinksException:
            json_.containsKey('waterSavingSinksException')
                ? json_['waterSavingSinksException'] as core.String
                : null,
        waterSavingToilets: json_.containsKey('waterSavingToilets')
            ? json_['waterSavingToilets'] as core.bool
            : null,
        waterSavingToiletsException:
            json_.containsKey('waterSavingToiletsException')
                ? json_['waterSavingToiletsException'] as core.String
                : null,
      );