toJson

fun toJson(): JsonObject(source)

Converts the Transaction object to a JsonObject for API requests.

Return

The JsonObject representation of the transaction.