DataStoreUtils

Functions

Link copied to clipboard
inline fun <T> toJsonString(data: T): String

Converts any object into a json String to be stored in DataStore.

Link copied to clipboard
inline fun <T> toList(jsonString: String): List<T>

Converts a json String that was stored in DataStore to a List of any Object.

Link copied to clipboard
inline fun <T> toStringMap(jsonString: String): Map<String, T>

<<<<<<< HEAD Converts a json String that was stored in DataStore to a Map.