Version2CustomTypeAdapterToAdapter
class Version2CustomTypeAdapterToAdapter<T>(v2CustomTypeAdapter: CustomTypeAdapter<T>) : Adapter<T>
Content copied to clipboard
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>)
Content copied to clipboard
Functions
Link copied to clipboard
open override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): T
Content copied to clipboard
Deserializes the given Json to the expected Kotlin type.
Link copied to clipboard
open override fun toJson( writer: JsonWriter, customScalarAdapters: CustomScalarAdapters, value: T)
Content copied to clipboard
Serializes a Kotlin type into its equivalent Json representation.