ingredientSpecialPropertyStatusFromJson function

IngredientSpecialPropertyStatus? ingredientSpecialPropertyStatusFromJson(
  1. dynamic json
)

Implementation

IngredientSpecialPropertyStatus? ingredientSpecialPropertyStatusFromJson(
    dynamic json) {
  if (json == null || json is! String) {
    return null;
  }
  try {
    return IngredientSpecialPropertyStatus.values.firstWhere(
      (final IngredientSpecialPropertyStatus key) => _MAP[key] == json,
    );
  } on StateError {
    return null;
  }
}