MapUtil

open class MapUtil

A simple util class that has methods to serialize and deserialize Map and Bundle.

Author

bhariharan

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun addBundleToMap(bundle: Bundle, keys: List<String>, map: Map<String, String>): Map<String, String>
Adds a map of key-value pairs extracted from a bundle.
Link copied to clipboard
open fun addJSONObjectToMap(jsonObject: JSONObject, keys: List<String>, map: Map<String, String>): Map<String, String>
Adds a map of key-value pairs extracted from a JSONObject.
Link copied to clipboard
open fun addMapToBundle(map: Map<String, String>, keys: List<String>, bundle: Bundle): Bundle
Adds a bundle of key-value pairs extracted from a map.
Link copied to clipboard
open fun addMapToJSONObject(map: Map<String, String>, keys: List<String>, jsonObject: JSONObject): JSONObject
Adds a JSONObject of key-value pairs extracted from a map.