public class Date_Serializer extends Object implements JSONSerializer<Date>
| Constructor and Description |
|---|
Date_Serializer() |
| Modifier and Type | Method and Description |
|---|---|
Date |
deserialize(Type type,
elemental.json.JsonValue jsonValue,
ApplicationConnection connection)
Creates and deserializes an object received from the server.
|
elemental.json.JsonValue |
serialize(Date value,
ApplicationConnection connection)
Serialize the given object into JSON.
|
public Date deserialize(Type type, elemental.json.JsonValue jsonValue, ApplicationConnection connection)
JSONSerializerJSONSerializer.serialize(Object, ApplicationConnection) and
also with the server side JsonCodec.encode method.deserialize in interface JSONSerializer<Date>type - the type to deserializejsonValue - JSON map from property name to property valueconnection - the application connection providing the contextpublic elemental.json.JsonValue serialize(Date value, ApplicationConnection connection)
JSONSerializerJSONSerializer.deserialize(Type, JsonValue, ApplicationConnection) and also
with the server side JsonCodec.decodeCustomType method.serialize in interface JSONSerializer<Date>value - The object to serializeconnection - the application connection providing the contextCopyright © 2021 Vaadin Ltd. All rights reserved.