kotlin, how to put HashMap in Parcelable
问题 In a class who implements Parcelable it has a HashMap member. Saw Parcelable has public final void readMap(Map outVal, ClassLoader loader) , but could not find a sample to use it. If do it by flatten the map and write/read one by one accordingly, how to extract from the parcel in the constructor? (got error to build the map from the parcelable, cannot access buildTheMap() before constructor is called ) class CachedData(val type: Int, val name: String, val details: HashMap<String, String) :