toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (ecoFriendlyToiletries != null)
        'ecoFriendlyToiletries': ecoFriendlyToiletries!,
      if (ecoFriendlyToiletriesException != null)
        'ecoFriendlyToiletriesException': ecoFriendlyToiletriesException!,
      if (locallySourcedFoodAndBeverages != null)
        'locallySourcedFoodAndBeverages': locallySourcedFoodAndBeverages!,
      if (locallySourcedFoodAndBeveragesException != null)
        'locallySourcedFoodAndBeveragesException':
            locallySourcedFoodAndBeveragesException!,
      if (organicCageFreeEggs != null)
        'organicCageFreeEggs': organicCageFreeEggs!,
      if (organicCageFreeEggsException != null)
        'organicCageFreeEggsException': organicCageFreeEggsException!,
      if (organicFoodAndBeverages != null)
        'organicFoodAndBeverages': organicFoodAndBeverages!,
      if (organicFoodAndBeveragesException != null)
        'organicFoodAndBeveragesException': organicFoodAndBeveragesException!,
      if (responsiblePurchasingPolicy != null)
        'responsiblePurchasingPolicy': responsiblePurchasingPolicy!,
      if (responsiblePurchasingPolicyException != null)
        'responsiblePurchasingPolicyException':
            responsiblePurchasingPolicyException!,
      if (responsiblySourcesSeafood != null)
        'responsiblySourcesSeafood': responsiblySourcesSeafood!,
      if (responsiblySourcesSeafoodException != null)
        'responsiblySourcesSeafoodException':
            responsiblySourcesSeafoodException!,
      if (veganMeals != null) 'veganMeals': veganMeals!,
      if (veganMealsException != null)
        'veganMealsException': veganMealsException!,
      if (vegetarianMeals != null) 'vegetarianMeals': vegetarianMeals!,
      if (vegetarianMealsException != null)
        'vegetarianMealsException': vegetarianMealsException!,
    };