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.map.serialization.
Class MapSerializer
java.lang.Object
com.vaadin.flow.component.map.serialization.MapSerializer
All Implemented Interfaces:
Custom JSON serializer for the map component using a Jackson
ObjectMapper
See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MapSerializer
public MapSerializer()
-
-
Method Details
-
toJson
Serializes a map configuration object to JSON using a Jackson
ObjectMapper
, and returns the value as aJsonValue
to provide it in a type that is compatible with Flow.Throws a runtime exception if the object can not be serialized to JSON.
Parameters:
value
- the map configuration object to be serialized into JSONReturns:
a
JsonValue
representing the configuration object as JSON
-