Adds the key and value pair to the map of metadata.
T the value type. K the key for a value of type T.
the key associated with the value
the data to be added to the map of metadata