*/ public function toArray(): array { return [ 'no_art' => $this->noArt, 'name' => $this->name, 'libelle' => $this->libelle, 'brand' => $this->brand, 'nutriscore' => $this->nutriscore, 'servings' => $this->servings, 'allergens' => $this->allergens, 'ingredients' => $this->ingredients, 'preparation' => $this->preparation, 'energy_kcal' => $this->energyKcal, 'energy_kj' => $this->energyKj, 'fat' => $this->fat, 'sat_fat' => $this->satFat, 'carbs' => $this->carbs, 'sugar' => $this->sugar, 'fiber' => $this->fiber, 'protein' => $this->protein, 'salt' => $this->salt, ]; } #[\Override] public function jsonSerialize(): mixed { return $this->toArray(); } }