Data Properties
Data properties are declared in initialisation code of dialogue model.
First, define some data class to play with
Static definition
You can define your data inside initialisation code
Loading from external source
To load data into model data property from external source, use delegate loader
.
Example of loading data from external URL providing resource of type JSON with known structure defined as data class
If you don't know the exact structure, you can work with data as with Map
objects
You can also load lists of primitive values, e.g. of type String
You can also use File Assets of type JSON. Just upload your file to it and get asset URL from its detail.
Last updated