NamedJsonAdapter

abstract class NamedJsonAdapter<T : Any> : JsonAdapter<T> (source)

A JsonAdapter that implements toString. This class is here to avoid adding one extra method per generated adapter.

This class should not be considered part of the Kotshi's public API and can change at any time without notice.

Parameters

T

The type that this adapter can serialize and deserialize. Cannot be nullable.

toString

The value that should be returned from toString.

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun fromJson(p0: JsonReader): T?
fun fromJson(p0: String): T?
Link copied to clipboard
fun fromJsonValue(p0: Any?): T?
Link copied to clipboard
open fun indent(p0: String): JsonAdapter<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toJson(p0: T?): String
abstract fun toJson(p0: JsonWriter, p1: T?)
fun toJson(p0: BufferedSink, p1: T?)
Link copied to clipboard
fun toJsonValue(p0: T?): Any?
Link copied to clipboard
override fun toString(): String