fromJson

inline fun <T> String.fromJson(): T?

Below method uses generics and can convert JSONString to Any type of object depending on the type provided

Ex: json.fromJson()