fromJson

abstract fun fromJson(reader: JsonReader): T

Decodes a nullable instance of type T from the given reader.

Throws

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

fun fromJson(source: BufferedSource): T

Decodes a nullable instance of type T from the given source.

Throws

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

fun fromJson(string: String): T

Decodes a nullable instance of type T from the given string.

Throws

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