
com.jakewharton.retrofit2.converter.kotlinx.serialization.DeserializationStrategyConverter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of retrofit2-kotlinx-serialization-converter Show documentation
Show all versions of retrofit2-kotlinx-serialization-converter Show documentation
A Converter.Factory for Kotlin's serialization support.
package com.jakewharton.retrofit2.converter.kotlinx.serialization
import kotlinx.serialization.DeserializationStrategy
import okhttp3.ResponseBody
import retrofit2.Converter
internal class DeserializationStrategyConverter(
private val loader: DeserializationStrategy,
private val serializer: Serializer
) : Converter {
override fun convert(value: ResponseBody) = serializer.fromResponseBody(loader, value)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy