processMap method
Processes all values in a JSON map by substituting variables.
This method takes each value in the provided map, converts it to a string, and processes it for variable substitution.
Parameters:
json- A map containing key-value pairs to process
Returns a new map with all values processed for variable substitution.
Implementation
Future<Map<String, dynamic>> processMap(Map<String, dynamic> json) async {
Map<String, dynamic> processedMap = {};
for (var key in json.keys) {
processedMap[key] = await process(json[key].toString());
}
return processedMap;
}