from

fun from(file: File): LocalScreenState

Extract a LocalScreenState from the provided file.

Return

A LocalScreenState populated with data from the file or an empty LocalScreenState 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): LocalScreenState

Answer a LocalScreenState from the provided JSONObject.

Return

The LocalScreenState.

Parameters

obj

The JSONObject to extract data from.