Interface JsonSerializable
- All Known Subinterfaces:
GameBoard
- All Known Implementing Classes:
GameBoardLocalImpl, GameState
public interface JsonSerializable
This interface defines a contract for classes that can be serialized to JSON strings.
Any class that implements this interface must provide an implementation of the
asJsonString()
method, which returns the JSON representation of the object.-
Method Summary
Modifier and TypeMethodDescriptionReturns the JSON representation of the object.
-
Method Details
-
asJsonString
String asJsonString()Returns the JSON representation of the object.- Returns:
- the JSON string representation of the object.
-