Adapter
An Adapter is responsible for adapting scalars between their Json and Kotlin representations.
It is used to
deserialize network responses
serialize variables
normalize models into records that can be stored in cache
deserialize records
Note: Adapters are called from multiple threads and implementations must be thread safe.
Inheritors
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
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