IsAnInstanceOfAdapter

abstract class IsAnInstanceOfAdapter<T : Any>(clazz: KClass<T>, resolveAdapter: Moshi.(KClass<T>) -> JsonAdapter<T> = { adapter(it.java) }) : JsonAdapter.Factory

This adapter factory will capture ALL instances of a particular superclass/interface.

Inheritors

Constructors

Link copied to clipboard
constructor(clazz: KClass<T>, resolveAdapter: Moshi.(KClass<T>) -> JsonAdapter<T> = { adapter(it.java) })

Functions

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