thiagoretondar
07/10/2019, 2:23 PMdata class Property(
val name: String,
val value: String
)
data class Element(
val name: String,
val properties: List<Property>?,
val elements: List<Element>? ---> REFERENCE ITSELF
)dalexander
07/10/2019, 2:27 PMMap<String, String> instead of a List<Property> unless Property is a placeholder for something more complex than two strings.dalexander
07/10/2019, 2:29 PMdalexander
07/10/2019, 2:30 PMHullaballoonatic
07/10/2019, 5:12 PMHullaballoonatic
07/10/2019, 5:16 PMentry.key you have property.name which is more context.Hullaballoonatic
07/10/2019, 5:19 PMHullaballoonatic
07/10/2019, 5:22 PMval firstNameToNameOfFavoritePet: Map<String, String> = ...