addMap

abstract fun addMap(map: Map<String, Any?>)

Add all the mappings from the specified map. The effect is the equivalent to that of calling add(String key, Object value) for each mapping for each key.

Parameters

map

Mappings to be stored in this map


abstract fun addMap(map: Map<*, *>, base64_encoded: Boolean, type_encoded: String, type_no_encoded: String)

Add a map to the Payload with a key dependent on the base 64 encoding option you choose using the two keys provided.

Parameters

map

Mapping to be stored

base64_encoded

The option you choose to encode the data

type_encoded

The key that would be set if the encoding option was set to true

type_no_encoded

The key that would be set if the encoding option was set to false