Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
interface ImageService {
suspend fun getImages(): ImageResponse
companion object {
@ExperimentalSerializationApi fun create(): ImageService {
return ImageServiceImpl(
client = HttpClient(Android) {
install(JsonFeature) {
serializer = GsonSerializer()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment