fromJson

fun fromJson(signatureJson: JSONObject): Signature

Creates a signature object by parsing the provided JSON object. The JSON object you provide should be initially obtained via toJson.

Return

Signature created from the provided JSON object.

Parameters

signatureJson

JSON object to parse.

See also


fun fromJson(id: Long, signatureJson: JSONObject): Signature

Creates a signature object by parsing the provided JSON object. The JSON object you provide should be initially obtained via toJson. This method also allows you to specify an id which will be assigned to the signature created from the given JSON. This id will also be assigned by the framework when retrieving the signatures from the default storage.

Return

Signature created from the provided JSON object.

Parameters

id

Id to be assigned to the signature.

signatureJson

JSON object to parse.

See also