fromJson

inline fun <T> Gson.fromJson(json: String): T

An extension function that converts a JSON string to an object of type T.

Return

the object of type T converted from the JSON string.

Parameters

json

the JSON string to convert.