getClass static method
Implementation
static getClass(Map keyName, Map classMap) {
final arr = [];
keyName.keys.forEach((element) {
if (keyName[element] == true) {
arr.add(element);
}
});
Map obj = {};
arr.forEach((element) {
obj = {...obj, ...classMap[element]};
});
return obj;
}