getWidgetConfig method
Implementation
Map<String, dynamic> getWidgetConfig() {
// Fetch the configuration from Firebase Remote Config
final remoteConfig = CloudAppConfig.instance.firebaseRemoteConfig;
// Get the value for the widgetId (this should be your parameter name)
String jsonConfig = remoteConfig.getString(widgetId);
// Parse the JSON string into a Map
final Map<String, dynamic> configMap = json.decode(jsonConfig);
log(configMap.toString());
// Based on the widget type, return the appropriate config data
return configMap;
}