fromJson

open 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.