АК
Size: a a a
АК
NT
implementation 'com.squareup.retrofit2:converter-moshi:latest.version'
@JsonClass(generateAdapter = true)
data class BlackjackHand(
val hidden_card: Card,
val visible_cards: List<Card>
)
addConverterFactory(MoshiConverterFactory.create())
Почему я получаю эту ошибку?Caused by: java.lang.IllegalArgumentException: No JsonAdapter for kotlinx.coroutines.flow.Flow<....> (with no annotations)
A
Q
NT
АК
Q
A
АК
NT
Q
override suspend fun getUsers(): Flow<List<PostEntity>> {
return api.getPostApi()
.getPosts()
.flowOn(Dispatchers.IO)
.map {
it.map {
PostEntity(id = it.id, title = it.title, body = it.body)
}
}
}
Q
NT
ЕГ
override suspend fun getUsers(): Flow<List<PostEntity>> {
return api.getPostApi()
.getPosts()
.flowOn(Dispatchers.IO)
.map {
it.map {
PostEntity(id = it.id, title = it.title, body = it.body)
}
}
}
ЕГ
NT
override suspend fun getUsers(): Flow<List<PostEntity>> {
return api.getPostApi()
.getPosts()
.flowOn(Dispatchers.IO)
.map {
it.map {
PostEntity(id = it.id, title = it.title, body = it.body)
}
}
}
I
Q
Q
ЕГ