fromJson

abstract fun fromJson(reader: JsonReader): T

Decodes a nullable instance of type T from the given {@code reader}.

Throws

when the data in a JSON document doesn't match the data expected bythe caller.

fun fromJson(source: BufferedSource): T

Decodes a nullable instance of type T from the given {@code source}.

Throws

when the data in a JSON document doesn't match the data expected bythe caller.

fun fromJson(string: String): T

Decodes a nullable instance of type T from the given {@code string}.

Throws

when the data in a JSON document doesn't match the data expected bythe caller.