decodeJson

inline fun <T> String.decodeJson(jsonInstance: Json? = null): T

Decode string to an entity of type T

Return

the decoded object of type T

Parameters

jsonInstance

the custom json object used to decode the specified string