fromJson

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