Package-level declarations

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun <T> String.fromJson(type: Type): 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
fun Any.toJson(): String?

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