android-components / mozilla.components.browser.session.storage / SnapshotSerializer

SnapshotSerializer

class SnapshotSerializer (source)

Helper to transform SessionManager.Snapshot instances to JSON and back.

Constructors

Name Summary
<init> SnapshotSerializer()
Helper to transform SessionManager.Snapshot instances to JSON and back.

Functions

Name Summary
fromJSON fun fromJSON(engine: Engine, json: String): Snapshot
itemFromJSON fun itemFromJSON(engine: Engine, json: JSONObject): Item
itemToJSON fun itemToJSON(item: Item): JSONObject
toJSON fun toJSON(snapshot: Snapshot): String