public class UserUtil
extends java.lang.Object
Constructor and Description |
---|
UserUtil() |
Modifier and Type | Method and Description |
---|---|
static User |
fromJson(javax.json.JsonObject json)
Generate a new User instance by loading the fields from the provided JSON object.
|
static javax.json.JsonObject |
toJson(User user)
Converts this User instance to an immutable JSON object.
|
public static User fromJson(javax.json.JsonObject json)
json
- a JSON object that contains the user informationpublic static javax.json.JsonObject toJson(User user)
user
- a User instance to convert into JSON