friendProfile2DartFriendInfo static method

V2TimFriendInfo friendProfile2DartFriendInfo(
  1. dynamic jsonInfo
)

Implementation

static V2TimFriendInfo friendProfile2DartFriendInfo(jsonInfo) {
  return V2TimFriendInfo.fromJson({
    "userID": jsonInfo["friend_profile_identifier"],
    "friendRemark": jsonInfo["friend_profile_remark"],
    "friendGroups": jsonInfo["friend_profile_group_name_array"],
    "friendCustomInfo": convert2DartMap(jsonInfo["friend_profile_custom_string_array"], "friend_profile_custom_string_info_key", "friend_profile_custom_string_info_value"),
    "userProfile": userProfile2DartUserFullInfo(jsonInfo["friend_profile_user_profile"]).toJson(),
  });
}