from

Extract a WorkbenchScreenState from the provided file.

Return

A WorkbenchScreenState populated with data from the file or an empty WorkbenchScreenState if any occur

  1. The file does not exist

  2. The file is a directory

  3. An exception occurs during data extraction.

Parameters

file

The file to extract data from.


fun from(obj: JSONObject): WorkbenchScreenState

Answer a WorkbenchScreenState from the provided JSONObject.

Return

The WorkbenchScreenState.

Parameters

obj

The JSONObject to extract data from.