encode

fun encode(data: Any?): String?

Converts the provided data to a String on success, null otherwise.