CookTrait.FoodSynonym

class CookTrait.FoodSynonym


Available food synonyms for a language.

Summary

Public constructors

FoodSynonym(synonym: List<String>, lang: String)

Creates the FoodSynonym class.

Public properties

String

ISO 639-1 language code, for example, en for English.

List<String>

Synonyms for the preset, which should include both singular and plural forms, if applicable.

Public constructors

FoodSynonym

FoodSynonym(synonym: List<String> = emptyList(), lang: String = "")

Creates the FoodSynonym class.

Public properties

lang

val langString

ISO 639-1 language code, for example, en for English.

synonym

val synonymList<String>

Synonyms for the preset, which should include both singular and plural forms, if applicable.