deserializeInventory

open fun deserializeInventory(jsons: String, settingsManager: SettingsManager): Inventory(source)

Deserialize an Inventory from a JSON string.

Return

the deserialized Inventory

Parameters

jsons

the JSON string

settingsManager

the SettingsManager to retrieve the title

Throws

InvalidConfigurationException

open fun deserializeInventory(jsons: String, title: String, settingsManager: SettingsManager): Inventory(source)

Deserialize an Inventory from a JSON string.

Return

the deserialized Inventory

Parameters

jsons

the JSON string

title

the title of the Inventory

settingsManager

the SettingsManager to retrieve the title if none is provided

Throws

InvalidConfigurationException