Package com.vaadin.flow.component
Interface JsonSerializable
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
FormLayout.ResponsiveStep
public interface JsonSerializable extends Serializable
Base interface for classes that are serializable to and fromJsonObject.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonSerializablereadJson(elemental.json.JsonObject value)Sets the JSON object data into the Java object.elemental.json.JsonObjecttoJson()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 object- Returns:
- this instance, for method chaining
-
-