NullableAdapter

class NullableAdapter<T : Any>(wrappedAdapter: Adapter<T>) : Adapter<@JvmSuppressWildcards() T?>

Functions

fromJson
Link copied to clipboard
common
open override fun fromJson(reader: JsonReader, customScalarAdapters: CustomScalarAdapters): T?
Deserializes the given Json to the expected Kotlin type.
toJson
Link copied to clipboard
common
open override fun toJson(writer: JsonWriter, customScalarAdapters: CustomScalarAdapters, value: T?)
Serializes a Kotlin type into its equivalent Json representation.