ListAdapter
class ListAdapter<T>(wrappedAdapter: Adapter<T>) : Adapter<List<@JvmSuppressWildcards T>>
Content copied to clipboard
This file contains a list of Adapter for standard types
They are mostly used from the generated code but could be useful in any other situations that requires adapting from GraphQL to Kotlin. In particular, AnyAdapter can be used to read/write a Kotlin representation from/to Json.
Constructors
Functions
Link copied to clipboard
open override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): List<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: List<T>)
Content copied to clipboard
Serializes a Kotlin type into its equivalent Json representation.