VariantMap

set() [VariantMap]

Add or update an element with key key in the map, setting the value to value. This method is implemented in Variant.

// PROTOTYPES
bool set(const char* key, Variant val);
bool set(const String& key, Variant val);

If the stored value of this Variant is not a map, it is converted to a map in place prior to the operation.