putCustomContext method
Adds custom context information to the event.
Custom contexts allow you to add additional structured data to events that can be used for analysis or by downstream integrations.
key
- The context key/namespace.
value
- The context data as a Map.
Returns this RudderOption instance for method chaining.
Implementation
RudderOption putCustomContext(String key, Map<String, Object> value) {
customContexts ??= {};
customContexts?[key] = value;
return this;
}