com.tink.rest.tools.TinkJsonAdapterFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest Show documentation
Show all versions of rest Show documentation
A library for Tink core services
package com.tink.rest.tools
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.Moshi
import com.tink.rest.models.Credentials
import java.lang.reflect.Type
class TinkJsonAdapterFactory : JsonAdapter.Factory {
override fun create(
type: Type,
annotations: MutableSet,
moshi: Moshi
): JsonAdapter<*>? {
if (type == Credentials.SupplementalInfoWrapper::class.java) {
return SupplementalInformationWrapperJsonAdapter(moshi)
}
return null
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy