addMetadata

open fun addMetadata(@NonNull section: String, @NonNull value: Map<String, out Any>)

Adds a map of multiple metadata key-value pairs to the specified section.


open fun addMetadata(@NonNull section: String, @NonNull key: String, @Nullable value: Any)

Adds the specified key and value in the specified section. The value can be of any primitive type or a collection such as a map, set or array.