JikanKt / moe.ganen.jikankt.utils / com.google.gson.Gson / deserialize

deserialize

fun <T : Any> Gson.deserialize(jsonElement: JsonElement, type: Type): T

Gson extension function to deserialize JsonElement to T

Parameters

jsonElement - : Json element that want to deserialize.

type - : return type

Return
T as the deserialize result.