SustainableSourcing.fromJson constructor

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,
      );