Package io.hotmoka.websockets.beans.api
Interface ToJsonRepresentation<T,JSON extends JsonRepresentation<T>>
- Type Parameters:
T- the type of the valueJSON- the type of the JSON representation ofthe value
public interface ToJsonRepresentation<T,JSON extends JsonRepresentation<T>>
A function that transforms a value into its JSON representation.
-
Method Summary
-
Method Details
-
map
Maps a value into its JSON representation.- Parameters:
value- the value- Returns:
- its JSON representation
- Throws:
Exception- if the conversion failed
-