Susheel
03/31/2021, 8:26 PM@Serializable
data class User(
@SerialName("UserName")
val name: String,
@SerialName("UserId")
val userID: String,
)
and yet I'm seeing the following exception
name: Error Domain=KotlinException Code=0 "No transformation found: class kotlin.ByteArray -> class com.xxx.kmmsharedmodule.User
in my kmm modulerusshwolf
03/31/2021, 8:52 PMSusheel
03/31/2021, 9:07 PMSusheel
03/31/2021, 9:08 PMrusshwolf
03/31/2021, 9:10 PMSusheel
03/31/2021, 9:19 PMSusheel
03/31/2021, 9:19 PMrusshwolf
03/31/2021, 9:21 PMSusheel
03/31/2021, 9:22 PMprivate val httpClient by lazy {
HttpClient(httpEngine) {
install(JsonFeature) {
val json = kotlinx.serialization.json.Json { ignoreUnknownKeys = true }
serializer = KotlinxSerializer(json)
}
}
}
louiscad
04/02/2021, 2:02 PM