formateFriendInfoFailInfoList static method

List formateFriendInfoFailInfoList(
  1. List faileList,
  2. List successUserIDList
)

Implementation

static List<dynamic> formateFriendInfoFailInfoList(
    List<dynamic> faileList, List<dynamic> successUserIDList) {
  return faileList
      .map((e) => {
            "resultCode": jsToMap(e)['code'],
            "resultInfo": jsToMap(e)['message'],
            "relation": getRelationByUserID(
                jsToMap(e)['userID'] as String, successUserIDList),
            "friendInfo": formateFriendInfo(jsToMap(e))
          })
      .toList();
}