All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tink.rest.tools.TinkJsonAdapterFactory.kt Maven / Gradle / Ivy

There is a newer version: 0.8.6
Show newest version
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