Version2CustomTypeAdapterToAdapter

class Version2CustomTypeAdapterToAdapter<T>(v2CustomTypeAdapter: CustomTypeAdapter<T>) : Adapter<T>

An Adapter that wraps an Apollo Android v2 style CustomTypeAdapter, to ease migration from v2 to v3.

Constructors

Link copied to clipboard
fun <T> Version2CustomTypeAdapterToAdapter(v2CustomTypeAdapter: CustomTypeAdapter<T>)

Functions

Link copied to clipboard
open override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): T

Deserializes the given Json to the expected Kotlin type.

Link copied to clipboard
open override fun toJson(    writer: JsonWriter,     customScalarAdapters: CustomScalarAdapters,     value: T)

Serializes a Kotlin type into its equivalent Json representation.