SimpleMoshiAdapterFactory

open class SimpleMoshiAdapterFactory(typesToAdapters: Pair<String, (Moshi) -> JsonAdapter<*>>) : JsonAdapter.Factory

Convenience class to create Moshi Adapter Factory

Constructors

Link copied to clipboard
constructor(vararg typesToAdapters: Pair<String, (Moshi) -> JsonAdapter<*>>)

Functions

Link copied to clipboard
open override fun create(type: Type, annotations: Set<Annotation>, moshi: Moshi): JsonAdapter<*>?