public class JasonUtil extends Object
| Constructor and Description |
|---|
JasonUtil() |
| Modifier and Type | Method and Description |
|---|---|
static RealtimeClientEvent |
fromJsonToClientEvent(String json)
Converts JSON string to RealtimeClientEvent object.
|
static RealtimeServerEvent |
fromJsonToServerEvent(String json)
Converts JSON string to RealtimeServerEvent object.
|
static String |
toJsonFromClientEvent(RealtimeClientEvent event)
Converts RealtimeClientEvent object to JSON string.
|
static String |
toJsonFromServerEvent(RealtimeServerEvent event)
Converts RealtimeServerEvent object to JSON string.
|
public static RealtimeClientEvent fromJsonToClientEvent(String json)
json - the JSON string to convertpublic static String toJsonFromClientEvent(RealtimeClientEvent event)
event - the RealtimeClientEvent object to convertpublic static RealtimeServerEvent fromJsonToServerEvent(String json)
json - the JSON string to convertpublic static String toJsonFromServerEvent(RealtimeServerEvent event)
event - the RealtimeServerEvent object to convertCopyright © 2025. All rights reserved.