We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.
Interface JsonSerializable
-
All Superinterfaces:
All Known Implementing Classes:
public interface JsonSerializable extends Serializable
Base interface for classes that are serializable to and from
JsonObject
.
-
-
Method Summary
All Methods Modifier and Type Method and Description JsonSerializable
readJson(elemental.json.JsonObject value)
Sets the JSON object data into the Java object.
elemental.json.JsonObject
toJson()
Converts this object to its JSON format.
-
-
-
Method Detail
-
toJson
elemental.json.JsonObject toJson()
Converts this object to its JSON format.
Returns:
the JSON representation of the object
-
readJson
JsonSerializable readJson(elemental.json.JsonObject value)
Sets the JSON object data into the Java object.
Parameters:
value
- the JSON representation of the objectReturns:
this instance, for method chaining
-
-