Package-level declarations

Properties

Link copied to clipboard

Functions

Link copied to clipboard
inline fun <T> String.fromJson(): T?

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

Link copied to clipboard
Link copied to clipboard
inline fun <T> T.toJson(): String?

Ex: object.toJson() ?: "" / object.toJson().orEmpty()