encode

fun encode(settings: JSONObject): ByteArray