remoteConfig method

Map<String, dynamic> remoteConfig()

Global app-level remote configuration payload for the active user variation.

Parsed from remoteConfigString. Returns an empty map when config is missing or invalid.

Implementation

Map<String, dynamic> remoteConfig() {
  final raw = remoteConfigString;
  if (raw == null || raw.isEmpty) {
    return {};
  }
  try {
    final decoded = jsonDecode(raw);
    if (decoded is Map) {
      return Map<String, dynamic>.from(decoded);
    }
  } catch (_) {
    // ignore invalid JSON
  }
  return {};
}