Class MapSerializer
java.lang.Object
com.vaadin.flow.component.map.serialization.MapSerializer
Custom JSON serializer for the map component using a Jackson
ObjectMapper-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.node.BaseJsonNodeSerializes a map configuration object to JSON using a custom JacksonObjectMapperthat handles FlowStreamResourceandDownloadHandlerto serialize those into URLs.
-
Constructor Details
-
MapSerializer
-
-
Method Details
-
toJson
Serializes a map configuration object to JSON using a custom JacksonObjectMapperthat handles FlowStreamResourceandDownloadHandlerto serialize those into URLs.- Parameters:
value- the map configuration object to be serialized into JSON- Returns:
- a
BaseJsonNoderepresenting the configuration object as JSON - Throws:
IllegalArgumentException- if the object can not be serialized to JSON
-