SustainableSourcing.fromJson constructor Null safety

SustainableSourcing.fromJson(
  1. Map _json
)

Implementation

SustainableSourcing.fromJson(core.Map _json)
    : this(
        ecoFriendlyToiletries: _json.containsKey('ecoFriendlyToiletries')
            ? _json['ecoFriendlyToiletries'] as core.bool
            : null,
        ecoFriendlyToiletriesException:
            _json.containsKey('ecoFriendlyToiletriesException')
                ? _json['ecoFriendlyToiletriesException'] as core.String
                : null,
        locallySourcedFoodAndBeverages:
            _json.containsKey('locallySourcedFoodAndBeverages')
                ? _json['locallySourcedFoodAndBeverages'] as core.bool
                : null,
        locallySourcedFoodAndBeveragesException: _json
                .containsKey('locallySourcedFoodAndBeveragesException')
            ? _json['locallySourcedFoodAndBeveragesException'] as core.String
            : null,
        organicCageFreeEggs: _json.containsKey('organicCageFreeEggs')
            ? _json['organicCageFreeEggs'] as core.bool
            : null,
        organicCageFreeEggsException:
            _json.containsKey('organicCageFreeEggsException')
                ? _json['organicCageFreeEggsException'] as core.String
                : null,
        organicFoodAndBeverages: _json.containsKey('organicFoodAndBeverages')
            ? _json['organicFoodAndBeverages'] as core.bool
            : null,
        organicFoodAndBeveragesException:
            _json.containsKey('organicFoodAndBeveragesException')
                ? _json['organicFoodAndBeveragesException'] as core.String
                : null,
        responsiblePurchasingPolicy:
            _json.containsKey('responsiblePurchasingPolicy')
                ? _json['responsiblePurchasingPolicy'] as core.bool
                : null,
        responsiblePurchasingPolicyException:
            _json.containsKey('responsiblePurchasingPolicyException')
                ? _json['responsiblePurchasingPolicyException'] as core.String
                : null,
        responsiblySourcesSeafood:
            _json.containsKey('responsiblySourcesSeafood')
                ? _json['responsiblySourcesSeafood'] as core.bool
                : null,
        responsiblySourcesSeafoodException:
            _json.containsKey('responsiblySourcesSeafoodException')
                ? _json['responsiblySourcesSeafoodException'] as core.String
                : null,
        veganMeals: _json.containsKey('veganMeals')
            ? _json['veganMeals'] as core.bool
            : null,
        veganMealsException: _json.containsKey('veganMealsException')
            ? _json['veganMealsException'] as core.String
            : null,
        vegetarianMeals: _json.containsKey('vegetarianMeals')
            ? _json['vegetarianMeals'] as core.bool
            : null,
        vegetarianMealsException:
            _json.containsKey('vegetarianMealsException')
                ? _json['vegetarianMealsException'] as core.String
                : null,
      );