toMobileMap method

Map<String, Object> toMobileMap()

Converts the options to a format suitable for mobile platforms.

Returns a Map<String, Object> formatted for mobile platform communication.

Implementation

Map<String, Object> toMobileMap() {
  Map<String, Object> optionsMap = {};
  optionsMap["externalIds"] = externalIds ?? [];
  optionsMap["integrations"] = getMobileIntegrationsMap() ?? {};
  optionsMap["customContexts"] = customContexts ?? {};
  return optionsMap;
}