fromLegacyJSON

fun fromLegacyJSON(json: JSONObject?, warnings: WarningLogger? = null): Locator?

Creates a Locator from its legacy JSON representation.

Only use this API when you are upgrading to Readium 3.x and migrating the Locator objects stored in your database. See the migration guide for more information.