ListAdapter
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.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link 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>)
Serializes a Kotlin type into its equivalent Json representation.
Link copied to clipboard
fun <T> Adapter<T>.toJsonString(value: T, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, indent: String? = null): String