convex.core.transactions.Transactions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of convex-core Show documentation
Show all versions of convex-core Show documentation
Convex core libraries and common utilities
The newest version!
package convex.core.transactions;
import java.util.HashMap;
import convex.core.lang.RT;
public class Transactions {
public static HashMap toJSON(ATransaction tx) {
HashMap result= RT.jsonMap(tx);
result.put("type", tx.getClass().getSimpleName());
return result;
}
}