fetchData

abstract suspend fun fetchData(context: Context): JSONObject

Fetches the data from assets.

Author

Arnau Mora

Since

20211224

Return

The built JSONObject that contains the data.

Parameters

context

The Context that is requesting the data.

Throws

When there's an error while loading the data file.

When there's an error while parsing the JSON file.