JsonContract

abstract class JsonContract

Public serialize contract for JSON encode/decode.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract fun decodeFromJson(jsonObject: JSONObject)

Decode from JSONObject to current object.

Link copied to clipboard
abstract fun encodeToJson(): JSONObject

Encode current object to JSONObject.