text: class Food:
      def __init__(self, food_name):
          self.food_name = food_name
          self.food_brand = ''
          self.protein = 0.0
          self.carbs = 0.0
          self.fat = 0.0
          self.kcal = 0.0
          self.unit = ''
          self.quantity = 0.0
  
      def to_json(self):
          return dict(food_name=self.food_name, food_brand=self.food_brand, protein=self.protein, carbs=self.carbs, fat=self.fat, kcal=self.kcal, unit=self.unit, quantity=self.quantity)
  