getClass static method

dynamic getClass(
  1. Map keyName,
  2. Map classMap
)

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;
}