parse As

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

method to parse Map to object using Gson

Return

instance of T that parsed from the Map


inline fun <T> String.parseAs(): T?

method to parse String to object using Gson

Return

instance of T that parsed from the String

Sources

Link copied to clipboard
Link copied to clipboard