IngredientResponse

class IngredientResponse(    uniqueIngredientID: String,     names: Map<String, String>,     parents: List<String>,     children: List<String>,     wikiDataCode: String?) : EntityResponse<Ingredient>

Intermediate class between IngredientsWrapper and Ingredient

Author

dobriseb 2018-12-21 inspired by IngredientResponse

Constructors

Link copied to clipboard
fun IngredientResponse(    uniqueIngredientID: String,     names: Map<String, String>,     parents: List<String>,     children: List<String>,     wikiDataCode: String?)

Functions

Link copied to clipboard
open override fun map(): Ingredient

Converts an IngredientResponse object into a new Ingredient object.