deserializeContentCard

open override fun deserializeContentCard(contentCardString: String?): Card?

Helper method for IBraze.deserializeContentCard.

Parameters

contentCardString

The string content of a Content Card's JSONObject obtained via JSONObject.toString.


open override fun deserializeContentCard(contentCardJson: JSONObject?): Card?

Constructs a Content Card from its Card.forJsonPut output. Useful for caching Content Card data and recreating them for your own purposes.

Note that the analytics methods on this deserialized cards will work in the same way as a standard Braze provided Card. I.e. clicks and impressions can be logged on the returned object.

Parameters

contentCardJson

The JSONObject representation of a Content Card as obtained via Card.forJsonPut.