fromJson

fun fromJson(jsonObject: JSONObject?): Message?

Creates a Message object from a JSONObject.

Return

A Message object, or null if the JSONObject is null or missing required fields

Parameters

jsonObject

The JSONObject representation of the message