Package-level declarations

Properties

Link copied to clipboard
val gson: Gson

Functions

Link copied to clipboard
inline fun <T, R> T.convert(): R

Convert an object of type T to type R

Link copied to clipboard
inline fun <T> Gson.fromJson(json: String?): T?

Helps to get Map, List, Set or other generic type from Json using Gson.

Link copied to clipboard
inline fun <T : Any> Gson.fromJsonList(json: String?): List<T>?
Link copied to clipboard
fun <T> T.toMap(): Map<String, Any>

Convert an object to a Map

Link copied to clipboard
inline fun <T> String.toObject(): T

Convert a String to an Object

inline fun <T> Map<String, Any>.toObject(): T

Convert a Map to an Object

Link copied to clipboard
inline fun <T> typeToken(): Type