coletz
03/05/2020, 9:54 PM{data: [{..},{..}]}
); it works fine on android, while on iOS all the values inside the list are null. The external data
object is parsed and the list too, but all the objects in the list have every value setted to nullcoletz
03/05/2020, 9:54 PM{"PROP":"value"}
). Could this be the issue?coletz
03/05/2020, 10:39 PM@Serializable
data class BaseItemModelWrapper<T: BaseItemModel>(
@SerialName("data") val data: List<T>
)
coletz
03/05/2020, 11:28 PMclass One {
var a: String
}
@Serializable
class Two: One() {
var b: String
}
on android parsing Two will parse both a and b while on iOS only b is parsed. The problem is that it's not possible to annotate both the base class and the specific one (leads to compile error)coletz
03/05/2020, 11:42 PMclass One {
var a: String
}
@Serializable
class Two: One() {
override var a: String
var b: String
}