convert2DartMap static method
Implementation
static Map<String, String>? convert2DartMap(objectArray, String key, String value) {
Map<String, String> map = {};
if (objectArray != null) {
for (dynamic item in objectArray) {
map[item[key] ?? ""] = item[value] ?? "";
}
}
return map;
}