addPeopleFromBodyMap method

Map<String, dynamic> addPeopleFromBodyMap(
  1. Map<String, dynamic> bodyJsonMap
)

Implementation

Map<String, dynamic> addPeopleFromBodyMap(Map<String, dynamic> bodyJsonMap) {
  try {
    Map<String, dynamic> newMap = cast<String, dynamic>();
    if (bodyJsonMap['ApiPeople'] != null) {
      newMap.addAll({logApierKey: bodyJsonMap['ApiPeople']});
    }
    if (bodyJsonMap['AppPeople'] != null) {
      newMap.addAll({logApperKey: bodyJsonMap['AppPeople']});
    }
    return newMap;
  } catch (err) {
    debugPrint("addPeopleFromBodyMap error:$err");
    return this as Map<String, dynamic>;
  }
}