loadData

open override fun loadData(context: Context): List<Ingredient>

loads a list of ingredients from a JSON file in internal storage.

Return

The loaded list of Ingredient objects, or an empty list if loading fails or file not found.

Parameters

context

The application context.