saveData

open override fun saveData(context: Context, ingredients: List<Ingredient>)

Saves a list of ingredients to internal storage as a JSON file.

Parameters

context

The application context.

ingredients

The list of Ingredient objects to save.