read

fun read(text: String)

Decodes a JSON scene document using snake_case property names.

Loading a document does not change the screen until transition is called.

Throws

kotlinx.serialization.SerializationException

If the document cannot be decoded.

If the decoded values are invalid.